In one log, the last field (pid) is missing so nothing is dissected.
The ignore_missing looks like it would handle “message” missing, but I don’t see an option to tolerate a short message. Is there a way to tolerate a short message?
Thanks.
(Yes, it could be changed to an ingest pipeline, but this was a simple solution, till it wasn’t)
No, dissect requires that the message matches the pattern, if the message does not match, it will fail.
But, if I'm not wrong it can have more tokens, just not less tokens.
Since your case what is missing is the last token, maybe you can use a different pattern and capture the path and pid together and process them later in different ways depending if the pid is present or not.
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.