This is log file (Directly taken from example conf files in file beat reference)
Exception in thread "main" java.lang.NullPointerException
at com.example.myproject.Book.getTitle(Book.java:16)
at com.example.myproject.Author.getBookTitles(Author.java:25)
at com.example.myproject.Bootstrap.main(Bootstrap.java:14)
This is the filebeat.yml multiline settings
multiline.pattern: '^[[:space:]]'
multiline.negate: false
multiline.match: after
the output is an elastic search.
On analysing elastic search using kibana I found out that each line is stored in a separate document.
Can I store multiple lines in a message field of a document?
Multiline messages are stored in the same document. The example configuration you have pulled from our website is correct and multiple lines are aggregated into a single document.
Could you please share your whole configuration formatted using </>? There might be a whitespace problem somewhere in your config which causes the problem.
Exception in thread "main" java.lang.NullPointerException
at com.example.myproject.Book.getTitle(Book.java:16)
at com.example.myproject.Author.getBookTitles(Author.java:25)
at com.example.myproject.Bootstrap.main(Bootstrap.java:14)
The indentation is still off. The section multiline needs to be in the same column as the input. See my configuration snippet. I think your editor is interfering with the indentation of the config. You need to use spaces and do not let your editor mix tabs and spaces.
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.