-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfilebeat.docker.yml
33 lines (30 loc) · 1004 Bytes
/
filebeat.docker.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
filebeat.autodiscover:
providers:
- type: docker
hints.enabled: true
templates:
- condition:
contains:
docker.container.name: "distributed-job-processor-app"
config:
- type: container
paths:
- /var/lib/docker/containers/${data.docker.container.id}/*.log
# You can add more parse or multiline settings here if needed
- type: docker
hints.enabled: true
templates:
- condition:
contains:
docker.container.name: "distributed-job-processor-postgres"
config:
- type: container
paths:
- /var/lib/docker/containers/${data.docker.container.id}/*.log
# -> logs to Elasticsearch
output.elasticsearch:
hosts: ["${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}"]
# If security is enabled, add username/password or token
# (Optional) console output for debugging
# output.console:
# pretty: true