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!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...