-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-splunk-kafka.yaml
47 lines (40 loc) · 1.1 KB
/
docker-compose-splunk-kafka.yaml
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
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# NOTE: This is not the way a Kafka cluster would normally be deployed in production, as it is not secure
# and is not fault tolerant. This example is a toy deployment that is only meant to exercise the Kafka code path
# of the ordering service.
version: '2'
x-logging:
&default-logging
driver: "splunk"
x-log-opts:
&log-opts
splunk-token: "12345678-ABCD-EFGH-IJKL-123456789012"
splunk-url: "https://localhost:8088"
splunk-insecureskipverify: "true"
splunk-verify-connection: "false"
splunk-format: "json"
tag: "{{.Name}}-{{.ID}}"
networks:
byfn:
services:
zookeeper.example.com:
logging:
<<: *default-logging
options:
<<: *log-opts
splunk-sourcetype: "docker:zookeeper"
splunk-source: zookeeper.example.com
depends_on:
- splunk.example.com
kafka.example.com:
logging:
<<: *default-logging
options:
<<: *log-opts
splunk-sourcetype: "docker:kafka"
splunk-source: kafka.example.com
depends_on:
- splunk.example.com