Hi,
I would like to know if I can add a field if I find a word in the message but with just a block of lines.
log file example:
2022-01-01 17:27:56 - Starting d........
2022-12-22 17:27:59 - Run.....
.
.
2022-01-01 17:28:12 - request in format is =>
000000: 04 77 02 76 40 11 33 3...... | MS7.12121212
.
.
002040: 20 20 20 14 14 14 ....... | 0035SOAA
2022-01-01 17:28:52 - testing timeout
2022-01-01 17:28:54 - timeout in format is =>
000116: 02 53 13 46 45 ...... | S?9.212121
.
.
002040: 20 20 20 14 14 14 ....... | 0035SOAA
2022-01-01 17:29:32 - end
filebeat.yml
multiline.type: pattern
multiline.pattern: '^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\s{3}-\sStarting'
multiline.negate: true
multiline.match: after
multiline.max_lines: 140
I want to add a field when i found "format" in message with multiline value when i found date
I hope you understand me.
Any help would be sincerely appreciate!
Thanks!