I am attempting to read 2 files with multiline logs. But I am not getting the desired result.
In test1.log line starts with date.
In test2.log line starts with time.
I get results for each log individually but when I combine them I don't get correct results.
filebeat.prospectors:
-
type: log
enabled: true
paths:- /gen_test1/test1.log
fields:
Region: AMS
multiline.pattern: '^(\d{4}-\d{2}-\d{2})'
multiline.negate: true
multiline.match: after
- /gen_test1/test1.log
-
type: log
enabled: true
paths:- /gen_test2/test2.log
fields:
Region: EMEA
multiline.pattern: '^(\d{2}:\d{2}:\d{2}.\d{3})'
multiline.negate: true
multiline.match: after
- /gen_test2/test2.log