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!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...