I am using logstash 2.2.1 ,logstash-input beats-2.1.3 and filebeat 1.1.2 . I have some XML type of log files. I have written beats config. I am facing the following issue
Issue 1: The xml log file multiline events are not getting combined into single event as expected.
For regexes better use single quotes: pattern: '^<error'.
See this regex sample code and press run. Every line beginning with false should indicate a new multiline-event
Content is 2 xml events as mentioned in variable content, and regular expression in pattern. Try by replacing content with a few events/lines from your original logs and see if pattern works ok.
Is there a chance of having whitespace before <error>?
Hi Steffen, I have tried the pattern: '^<error'. and I also include one more proerty in my beats YML file. input_type: xml. After this my issue got resolved.
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.