Splunk Search

Multiple Splunk container

peter123
New Member

HI
Is it possible to have multiple splunk docker container in the same host. I am trying with that but whenever i start the second container the first one get crashed. My Docker compose is like:

...
...
...
splunk1:
hostname: splunk1
container_name: splunk1
image: splunk/splunk:latest
environment:
SPLUNK_START_ARGS: --accept-license
SPLUNK_ENABLE_LISTEN: 9997
SPLUNK_ADD: tcp 1514
SPLUNK_PASSWORD: admin!
SPLUNK_USERNAME: admin
volumes:
- './splunk1/etc/web.conf:/opt/splunk/etc/system/local/web.conf'
volumes_from:
- vsplunk
links:
- vsplunk
ports:
- "8000:8000"
- "9997:9997"
- "8088:8088"
- "1514:1514"
networks:
- mynet

splunk2:
hostname: splunk2
container_name: splunk2
image: splunk/splunk:latest
environment:
SPLUNK_START_ARGS: --accept-license
SPLUNK_ENABLE_LISTEN: 9998
SPLUNK_ADD: tcp 1514
SPLUNK_PASSWORD: admin!
SPLUNK_USERNAME: admin
volumes:
- './splunk2/etc/web.conf:/opt/splunk/etc/system/local/web.conf'
# volumes_from:
#- vsplunk
#links:
#- vsplunk
ports:
- "8001:8000"
- "9998:9998"
- "8089:8088"
- "1515:1514"
networks:
- mynet
...
...
...

Tags (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...