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 Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...