I am trying to ingest multiline log event with filebeat and using Multiline Pattern but it is not working out as expected. Here is one of the multiline event I have:
03 Aug 2020 02:39:53,456 DEBUG [sometext] [sometext] ResourceStatusReader:220 - Persisted Resource Event:
EventKOK:
id = ResourceStatus-kk0000_opiii-2020-08-03T02-39-52Z
description = Resource Update Event
type = Comment
start = Aug 3, 2020 2:39:52 AM [965270392 0 [2020/08/03 02:39:52.000]]
stop = Aug 3, 2020 2:39:52 AM [965270392 0 [2020/08/03 02:39:52.000]]
resource names = [kk0000_opiii]
params =
Name: Status Value: OK
and the regex I have for the pattern:
^(?:\d{2}\s[\w]{3}\s\d{4}\s(\d{2}:?){3},\d{3})\s+[A-Z]{4,7}\s+\[.+\]\s+\[.+\]\s+.+\n+^EventKOK:
This does not give me one event. But makes it into two separate events. The first one before the return line:
03 Aug 2020 02:39:53,456 DEBUG [sometext] [sometext] ResourceStatusReader:220 - Persisted Resource Event:
and the other one:
EventKOK:
id = ResourceStatus-kk0000_opiii-2020-08-03T02-39-52Z
description = Resource Update Event
type = Comment
start = Aug 3, 2020 2:39:52 AM [965270392 0 [2020/08/03 02:39:52.000]]
stop = Aug 3, 2020 2:39:52 AM [965270392 0 [2020/08/03 02:39:52.000]]
resource names = [kk0000_opiii]
params =
Name: Status Value: OK
Thank you for your help.