Here is a typical log file generated from log4net
So, this log file is read by the logstash file input plugin.
By default, the delimiter
in configuration is \n
, which means each line is an event.
But in the log file above, you can see there could be multiple lines for one event. (like ERROR or FAULT or others)
How to configure Logstash to delimit the event correctly?
I suppose I could configure multiple delimiters like \nINFO
\nDEBUG
\nERROR
\nFAULT
. But the document says there can only be one delimiter.