Hi,
Can we use multiple level of multiline feature in Filebeat.
Input --> multiline (to join based on 1st pattern) --> processor(drop lines based on condition) -->multiline (to join based on 2pattern)
Input :
0 STARTED Thu Jan 30 22:48:00 2020
Starting process1
1 INFO Thu Jan 30 22:48:01 2020
process1 variable
2 STARTED Thu Jan 30 22:53:35 2020
process1 aborted.
Output (line to be send to Logstash)
-
Multiline ouput
|0|STARTED|Thu Jan 30 22:48:00 2020\n\tStarting process1|
|---|---|---|
|1|INFO|Thu Jan 30 22:48:01 2020\n\tprocess1 variable|
|2|STARTED|Thu Jan 30 22:53:35 2020\n\tprocess1 aborted.| -
Processor output (Removing INFO)
|0|STARTED|Thu Jan 30 22:48:00 2020\n\tStarting process1|
|---|---|---|
|2|STARTED|Thu Jan 30 22:53:35 2020\n\tprocess1 aborted.|
Till above I could achieve
Now next wanted above line in multiline and get output - a single line:
0 STARTED Thu Jan 30 22:48:00 2020\n\tStarting process1\n2 STARTED Thu Jan 30 22:53:35 2020\n\tprocess1 aborted.
Thanks & Regards,
Avijit Madal