Hi, i am new in elastic and i am working to send logs from filebeat to logstash, but i have a issue and i not found solution. the log have multiple related lines ID, information and status, i would like join them in single line to process more easy in elastic.
Please can you help me with my questions:
Is possible to do that i want?
what will be the procedure?
Due to the lines being intermixed, but having an ID this is no plain multiline problem, but a correlation problem. You can try to solve this via aggregate filter in Logstash.
The problem with this is: you can't even rely on order, as event_3 might surpass same lines from event_1 or event_2. In order to untangle these you need a correlation ID.
Your example suggest events are not intermixed, but written atomically. Like always:
If events are indeed written atomically, you can actually use multiline. Create a pattern looking for ^ID: (assuming ID is always the first entry) and use negate: true, match: after. See the table in the multiline docs.
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.