Dennis Zheleznyak

Dennis Zheleznyak

DevOps Engineer bigpanda

© 2021

Parse multiline logs with Filebeat correctly

Although Elasticsearch can parse multiline messages, sometimes it can be buggy.

What I did to solve multiple crashes and errprs were to let Filebeat do all the work.

You can use the following configurations to catch your multiline logs:

multiline.pattern: '(Error:)|(^\s)'
multiline.negate: true
multiline.match: after
multiline.pattern: '^\s'
multiline.negate: true
multiline.match: after
multiline.pattern: '^[0-9]'
multiline.negate: true
multiline.match: after
multiline.pattern: '^\['
multiline.negate: true
multiline.match: after