Merge pull request #19 from TouchInstinct/feature/filebeat.tags
filebeat: add docker tag
This commit is contained in:
commit
6108aaf21a
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue