-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-syslog.yml
73 lines (60 loc) · 1.7 KB
/
docker-compose-syslog.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
version: '2'
services:
elastic:
image: elasticsearch:2.4.0
volumes:
- /etc/timezone:/etc/timezone
command: -Des.network.host=0.0.0.0 -Dhttp.cors.enabled=true -Dhttp.cors.allow-origin=*
ports:
- "9200:9200"
- "9300:9300"
logstash1:
environment:
- counter_seed=1
- counter_increment=3
command: /opt/logstash/bin/logstash agent -f /config-dir/logstash.conf
volumes:
- ${PWD}/logstash-config/logstash.conf:/config-dir/logstash.conf:ro
- /etc/timezone:/etc/timezone
image: vivekjuneja/logstash:6
ports:
- "5001:5000"
- "5001:5000/udp"
- "12203:12201/udp"
depends_on:
- elastic
logstash2:
environment:
- counter_seed=2
- counter_increment=3
command: /opt/logstash/bin/logstash agent -f /config-dir/logstash.conf
volumes:
- ${PWD}/logstash-config/logstash.conf:/config-dir/logstash.conf:ro
- /etc/timezone:/etc/timezone
image: vivekjuneja/logstash:6
ports:
- "5002:5000"
- "5002:5000/udp"
- "12202:12201/udp"
depends_on:
- elastic
kibana:
environment:
- ELASTICSEARCH_URL=http://elastic:9200
volumes:
- /etc/timezone:/etc/timezone
image: kibana:4.6.3
ports:
- "5601:5601"
depends_on:
- elastic
filebeat:
command: /bin/filebeat -e -v -d "*" -c /etc/filebeat/filebeat.yml
volumes:
- ${PWD}/filebeat/filebeat_directlogstash.yml:/etc/filebeat/filebeat.yml
- /var/log/messages:/var/log/messages
- /etc/timezone:/etc/timezone
image: prima/filebeat:latest
depends_on:
- logstash1
- logstash2