so i am parsing multiline logs using Logstash. I need consider each log line will start with {"offset": currently it is printing into single line that's why it is coming in one message only
We are not using file beat hence need to implement in Logstash only
The multiline pattern is made in Logstash with sample logs:
HI @leandrojmp ,
yes those logs are generating in singe line only in txt files. but they need each log should start with {"offset": and they don't want to use filebeat as well through logstash only
This is confusing, it is not clear what is the issue, if you have a single line with a json document you do not need multiline and you also not need grok.
Also, if you have log files you should use the file input, not stdin.
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.