-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfull-stack-splunk-docker-compose.yml
306 lines (286 loc) · 7.05 KB
/
full-stack-splunk-docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# Update on 25072021
version: "3.7"
networks:
splunk:
driver: bridge
name: splunk-dhcp-server
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
services:
splunk7.3-indexer1:
# Add your build file or command here if you plan to use your own build
# build: .
hostname: splunk7.3-indexer1
image: store/splunk/splunk:7.3.0
container_name: splunk7.3-indexer1
privileged: true
cap_add:
- ALL
environment:
SPLUNK_START_ARGS: --accept-license
SPLUNK_PASSWORD: P@ssw0rd
SPLUNK_ENABLE_LISTEN: 9997
SPLUNK_ADD: tcp 1514
SPLUNK_USER: splunk
ports:
- "38880:8000"
- "38881:9997"
- "38882:8089"
- "38883:1514/tcp"
- "38884:22"
- "38885:8065"
- "38886:8191"
- "38887:9887"
restart: always
volumes:
- ./config-files-needed-for-splunk-indexer1:/austin:rw
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 130s
timeout: 10s
retries: 3
start_period: 40s
tmpfs:
- /run
- /tmp
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
#Below is working - syslog output to syslog server, change your syslog server ip here
# driver: "syslog"
# options:
# syslog-address: "tcp://192.168.86.34:12345"
networks:
splunk:
aliases:
- splunk7.3-indexer1
ipv4_address: 172.16.238.2
dns:
- 8.8.8.8
- 9.9.9.9
expose:
- 38880
- 38881
- 38882
- 38883
- 38884
- 38885
- 38886
- 38887
# splunk7.3-indexer2:
# # build: .
# hostname: splunk7.3-indexer2
# # image: austin-splunk7.3-base
# image: store/splunk/splunk:7.3.0
# container_name: splunk7.3-indexer2
# privileged: true
# cap_add:
# - ALL
# environment:
# SPLUNK_START_ARGS: --accept-license
# SPLUNK_PASSWORD: P@ssw0rd
# SPLUNK_ENABLE_LISTEN: 9997
# SPLUNK_ADD: tcp 1514
# SPLUNK_USER: splunk
# ports:
# - "38892:8000"
# - "38893:9997"
# - "38894:8089"
# - "38895:1514/tcp"
# - "38896:22"
# - "38897:8065"
# - "38898:8191"
# - "38899:9887"
# restart: always
# volumes:
# - ./config-files-needed-for-splunk-indexer2:/austin:rw
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8000"]
# interval: 130s
# timeout: 10s
# retries: 3
# start_period: 40s
# tmpfs:
# - /run
# - /tmp
# logging:
# driver: "json-file"
# options:
# max-size: "200k"
# max-file: "10"
# #Below is working
# # driver: "syslog"
# # options:
# # syslog-address: "tcp://192.168.86.34:12345"
# networks:
# splunk:
# aliases:
# - splunk7.3-indexer2
# ipv4_address: 172.16.238.5
# dns:
# - 8.8.8.8
# - 9.9.9.9
# expose:
# - 38892
# - 38893
# - 38894
# - 38895
# - 38896
# - 38897
# - 38898
# - 38899
# splunk7.3-heavy-forwarder1:
# # build: .
# hostname: splunk7.3-heavy-forwarder1
# # image: austin-splunk7.3-base
# image: store/splunk/splunk:7.3.0
# container_name: splunk7.3-heavy-forwarder1
# privileged: true
# depends_on:
# - splunk7.3-indexer1
# cap_add:
# - ALL
# environment:
# SPLUNK_START_ARGS: --accept-license
# SPLUNK_PASSWORD: P@ssw0rd
# SPLUNK_ENABLE_LISTEN: 9997
# SPLUNK_ADD: tcp 1514
# SPLUNK_USER: splunk
# ports:
# - "38900:8000"
# - "38901:9997"
# - "38902:8089"
# - "38903:1514/tcp"
# - "38904:22"
# - "38905:8065"
# - "38906:8191"
# - "38907:9887"
# restart: always
# volumes:
# - ./config-files-needed-for-splunk-heavy-forwarder1:/austin:rw
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8000"]
# interval: 130s
# timeout: 10s
# retries: 3
# start_period: 40s
# tmpfs:
# - /run
# - /tmp
# logging:
# driver: "json-file"
# options:
# max-size: "200k"
# max-file: "10"
# #Below is working
# # driver: "syslog"
# # options:
# # syslog-address: "tcp://192.168.86.34:12345"
# networks:
# splunk:
# aliases:
# - splunk7.3-heavy-forwarder1
# ipv4_address: 172.16.238.6
# dns:
# - 8.8.8.8
# - 9.9.9.9
# expose:
# - 38900
# - 38901
# - 38902
# - 38903
# - 38904
# - 38905
# - 38906
# - 38907
# splunk7.3-forwarder1:
# # build: .
# hostname: splunk7.3-forwarder1
# # image: austin-splunk7.3-base
# image: store/splunk/universalforwarder:7.3.0
# container_name: splunk7.3-forwarder1
# privileged: true
# cap_add:
# - ALL
# environment:
# SPLUNK_START_ARGS: --accept-license
# SPLUNK_PASSWORD: P@ssw0rd
# ports:
# - "38888:9997"
# - "38889:22"
# restart: always
# volumes:
# - ./config-files-needed-for-splunk-forwarder1:/austin:rw
# depends_on:
# - splunk7.3-indexer1
# tmpfs:
# - /run
# - /tmp
# logging:
# driver: "json-file"
# options:
# max-size: "200k"
# max-file: "10"
# #Below is working
# # driver: "syslog"
# # options:
# # syslog-address: "tcp://192.168.86.34:12345"
# networks:
# splunk:
# aliases:
# - splunk7.3-forwarder1
# ipv4_address: 172.16.238.3
# dns:
# - 8.8.8.8
# - 9.9.9.9
# expose:
# - 38888
# - 38889
# splunk7.3-forwarder2:
# # build: .
# hostname: splunk7.3-forwarder2
# # image: austin-splunk7.3-base
# image: store/splunk/universalforwarder:7.3.0
# container_name: splunk7.3-forwarder2
# privileged: true
# cap_add:
# - ALL
# environment:
# SPLUNK_START_ARGS: --accept-license
# SPLUNK_PASSWORD: P@ssw0rd
# ports:
# - "38890:9997"
# - "38891:22"
# restart: always
# volumes:
# - ./config-files-needed-for-splunk-forwarder2:/austin:rw
# depends_on:
# # Add in any dependency
# - splunk7.3-indexer1
# tmpfs:
# - /run
# - /tmp
# logging:
# driver: "json-file"
# options:
# max-size: "200k"
# max-file: "10"
# #Below is working
# # driver: "syslog"
# # options:
# # syslog-address: "tcp://192.168.86.34:12345"
# networks:
# splunk:
# aliases:
# - splunk7.3-forwarder2
# ipv4_address: 172.16.238.4
# dns:
# - 8.8.8.8
# - 9.9.9.9
# expose:
# - 38890
# - 38891