Please bear with me as I am new to this. I am using ELK 5.0.1
I am trying to ship my app logs(stack traces multiple lines as well as single line) and syslogs(mostly single line), I am using codec multiline in input of logstash but its not working properly. I have tagged syslogs as "syslog" and app logs as "applog". In kibana, I am seeing syslogs are coming under applogs which is bizarre, isn't it?
for example:
/tmp/app.log
some app log text
/tmp/sys.log
some syslog text
in Kibana, it is showing as single event like below :
some app log text
some syslog text
and showing source as /tmp/sys.log and type as "syslog" whereas app logs are also there :(, Now it is difficult to find which are app's events and which are system's events.
earlier I was using logstash-forwarder on older box , there it was working fine.
Multiline can be quite tricky in LS. One has to create some kind of id to correctly correlate lines. To simplify multiline processing, filebeat integrates multiline itself. Difference to Logstash multiline is, filebeat multiline operates on per file reducing chances of errors.
Keep in mind, if using syslog, multiline and normal logs might become mixed up by syslog itself.
Also your doing Multiline on the receiving side, it probably does not track which log is comfing from which server. your best to do the multiline on the Filebeat host
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.