Skip to content

Instantly share code, notes, and snippets.

@roongr2k7
Created September 11, 2018 04:21
Show Gist options
  • Save roongr2k7/33019913bb89745ff3fdec3f07a2ac4d to your computer and use it in GitHub Desktop.
Save roongr2k7/33019913bb89745ff3fdec3f07a2ac4d to your computer and use it in GitHub Desktop.
filebeat parse multiline docker container log
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