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.
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.
Expected output to logstash
0 STARTED Thu Jan 30 22:48:00 2020 Starting process1 2 STARTED Thu Jan 30 22:53:35 2020 process1 aborted.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.