I need to get the entire log file as it is in the elk stack.
Consider I have this log: <line1> <line2> <line3>|
If my pointer is placed on the line 3 i will get the entire log file except <line3>
. If the cursor is in new line then i will be able to get the file as expected.
This is my filebeat: multiline.pattern: '.*' multiline.negate: false multiline.match: after
I actually want the entire data from the log file. There are different type of logs which iam trying to import so in my case there is no fixed pattern as such.
Iam able to get the entire file when the pointer is pointing in new line as shown above but if the pointer is placed at the end of <EndLine>| , then I will get all the data till <SecondLine>ABC skipping the end line.
Filebeat first splits the file into lines. The multiline processing combines them again. One can use multiline.timeout to trigger a flush of the multiline buffer, but EndLine might not be included in this case.
That's exactly my issue, kindly tell me if it is possible to get the full file including the <EndLine>. I'm stuck here for a long time, I have also attached my filebeat config file above in my question description for further details.
Without the final new line control character it's currently not possible.
There is an open enhancement request for sending complete files: https://github.com/elastic/beats/issues/4982
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.