I'm trying to get Logstash 8 working with a config that works in Logstash 7. I'm not getting any output even though it works fine in v7. If I remove all the filters, I still do not get any output. When I run LS in debut I can see all the individual json lines read in, but, again, there is no output.
The input file is thousands of line delimited json individual logs. I verified that it is syntactically correct json. I've tried running logstash via Ubuntu and Windows Subsystem for Linux with the same lack of output. What am I missing?
Can you share logstash logs when you run this pipeline?
I don't think much changed from 7.X to 8.X in ths input, but have you tried to remove the codec => "json_lines" ? You do not need it.
The codec description has a note that you should not use json_lines when using the file input.
NOTE: Do not use this codec if your source input is line-oriented JSON, for example, redis or file inputs. Rather, use the json codec. More info: This codec is expecting to receive a stream (string) of newline terminated lines. The file input will produce a line string without a newline. Therefore this codec cannot work with line oriented inputs.
Also, if possible share some sample message from your file so it is possible to try to replicate your issue.
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.