Added Splunk Docker capability, log access
This commit is contained in:
12
Splunk/Makefile
Normal file
12
Splunk/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
start:
|
||||
docker-compose up -d
|
||||
|
||||
stop:
|
||||
@docker-compose down -v
|
||||
|
||||
restart:
|
||||
@docker-compose down -v
|
||||
docker-compose up -d
|
||||
|
||||
logs:
|
||||
@docker-compose logs -f
|
||||
3
Splunk/Start_Splunk_Linux_Mac.sh
Executable file
3
Splunk/Start_Splunk_Linux_Mac.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo make start
|
||||
5
Splunk/Start_Splunk_Windows.cmd
Normal file
5
Splunk/Start_Splunk_Windows.cmd
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
make start
|
||||
echo:
|
||||
3
Splunk/Stop_Splunk_Linux_Mac.sh
Executable file
3
Splunk/Stop_Splunk_Linux_Mac.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo make stop
|
||||
5
Splunk/Stop_Splunk_Windows.cmd
Normal file
5
Splunk/Stop_Splunk_Windows.cmd
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
make stop
|
||||
echo:
|
||||
3
Splunk/View_Docker_Container_Logs_Linux_Mac.sh
Executable file
3
Splunk/View_Docker_Container_Logs_Linux_Mac.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo make logs
|
||||
5
Splunk/View_Docker_Container_Logs_Windows.cmd
Normal file
5
Splunk/View_Docker_Container_Logs_Windows.cmd
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
make logs
|
||||
echo:
|
||||
25
Splunk/docker-compose.yml
Normal file
25
Splunk/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: '3'
|
||||
|
||||
volumes:
|
||||
opt-splunk-etc:
|
||||
opt-splunk-var:
|
||||
|
||||
services:
|
||||
splunk:
|
||||
hostname: splunk
|
||||
image: splunk/splunk:latest
|
||||
environment:
|
||||
SPLUNK_START_ARGS: --accept-license --answer-yes --seed-passwd defaultpassword
|
||||
OPTIMISTIC_ABOUT_FILE_LOCKING: '1'
|
||||
SPLUNK_ENABLE_LISTEN: 9997
|
||||
SPLUNK_ADD: tcp 1514
|
||||
ports:
|
||||
- "8000:8000" #Splunk Web interface
|
||||
- "9997:9997" #Splunk receiving Port (not used by default) typically used by the Splunk Universal Forwarder
|
||||
- "8088:8088" #HTTP Event Collector
|
||||
- "1514:1514" #Network Input (not used by default) typically used to collect syslog TCP data
|
||||
volumes:
|
||||
- "../:/home/Docker-Home"
|
||||
- "../etc/nginx/logs:/home/nginx-logs"
|
||||
- "./opt-splunk-etc:/opt/splunk/etc"
|
||||
- "./opt-splunk-var:/opt/splunk/var"
|
||||
0
Splunk/opt-splunk-etc/empty
Normal file
0
Splunk/opt-splunk-etc/empty
Normal file
0
Splunk/opt-splunk-var/empty
Normal file
0
Splunk/opt-splunk-var/empty
Normal file
Reference in New Issue
Block a user