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
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...