-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilebeat.yml
44 lines (41 loc) · 1.36 KB
/
filebeat.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
filebeat.autodiscover:
providers:
- type: docker
templates:
- condition:
contains:
docker.container.image: nginx
config:
- type: container
paths:
- /var/lib/docker/containers/${data.docker.container.id}/*.log
- condition:
contains:
docker.container.image: php
config:
- type: container
paths:
- /var/lib/docker/containers/${data.docker.container.id}/*.log
- condition:
contains:
docker.container.image: mysql
config:
- type: container
paths:
- /var/lib/docker/containers/${data.docker.container.id}/*.log
# #----------------------------- Logstash output ---------------------------------
# output.logstash:
# # Boolean flag to enable or disable the output module.
# enabled: true
# # The Logstash hosts
# hosts: ["localhost:5044"]
#----------------------------- Console output ---------------------------------
output.console:
# Boolean flag to enable or disable the output module.
enabled: true
# Configure JSON encoding
codec.json:
# Pretty-print JSON event
pretty: false
# Write Filebeat own logs only to file to avoid catching them with itself in docker log files
logging.to_files: true