Merge pull request #19 from TouchInstinct/feature/filebeat.tags

filebeat: add docker tag
This commit is contained in:
TonCherAmi 2020-08-19 15:40:33 +03:00 committed by GitHub
commit 6108aaf21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ output.file.enabled: false
filebeat.inputs: filebeat.inputs:
- type: container - type: container
paths: paths:
- "/var/lib/docker/containers/*/*.log" - "/var/lib/docker/containers/*/*.log"
processors: processors:
- add_docker_metadata: - add_docker_metadata:
@ -18,6 +18,8 @@ filebeat.inputs:
not: not:
equals: equals:
container.labels.log_consumed-by: "filebeat" container.labels.log_consumed-by: "filebeat"
- add_tags:
tags: ["docker"]
output.logstash: output.logstash:
hosts: {{ filebeat.logstash.hosts | to_json }} hosts: {{ filebeat.logstash.hosts | to_json }}