from what you can see, the username and reference field is optional (these two fields is not depend each other),
is there any way to use one grok pattern, so I don't need to mention each pattern while using "ignore_failure" on each processor?
Here is your grok: \[%{GREEDYDATA:process}\] %{POSINT:procid} - %{GREEDYDATA:timestamp} \[%{GREEDYDATA:activity}\] %{GREEDYDATA:message} %{GREEDYDATA:generated_ms}
I would avoid GREEDYDATA since it's slow and add date formatting.
hello, thanks for the response,
but it seems like you missed my point, I have two almost similar log, there's username field and reference field which is possible to be included into the log.
the grok pattern you provided won't matched with my 2nd log,
is there any way to have one grok pattern with those two different log?
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.