Getting Data In

How to customize official splunk universalforwarder docker image

vrathore2016
New Member

Below docker command will be used to run the app.

docker run \
-d \
-name app_x \
-v /opt/app/logs \
testapp
"/opt/app/logs" will be the place where app logs will be kept and sharing the data volume so that another container can access it.

I want to use another splunk container which will use the same data volume. Is there any official docker file from splunk?

I am stuck on how to implement this below on the splunk docker file.

[monitor:///home/ec2-user]
  whitelist=app\.log|\.log$|app
  index=test
  sourcetype=log4j
  [splunktcp://9997]
  compressed = false

OR set splunk_server_host

Thanks for helping

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...