Created
September 11, 2018 04:21
-
-
Save roongr2k7/33019913bb89745ff3fdec3f07a2ac4d to your computer and use it in GitHub Desktop.
filebeat parse multiline docker container log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filebeat.prospectors: | |
- type: log | |
enabled: true | |
paths: | |
- /var/lib/docker/containers/*/*.log | |
multiline.pattern: '^[a-zA-Z0-9].+:' | |
multiline.negate: true | |
multiline.match: after | |
json.message_key: log | |
json.keys_under_root: true | |
processors: | |
- add_docker_metadata: ~ | |
output.elasticsearch: | |
hosts: {{filebeat_elasticsearch_hosts|to_yaml}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment