I am unable to get correct pattern to do that.
My log file contain single event only that will be rotated every 5 minutes. That single event contains 2500 lines under a single JSOn object comprising multiple child JSON objects.
Can you please help either with the pattern or with process on how to add } at the end of message field in logstash so that I can parse JSON
Yes , you are right, there is only single event in log file - it will rotate once it has new log entry,so just 1 log at a time and we don't have any line break or new line at the end. That is why agent is ignoring last line that is } .
I can't modify source file as some 3rd party vendor is producing it.
Any way to add } at the end of message value using logstash filters so that it can be parsed as JSON.
As an overview, I am just getting data from beats input (agent integration), using JSON filter on message field (which is failing) and sending output to Elasticsearch
Thank you
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.