good day everyone, using elastic stack 17.7.5 I'm parsing log events to logstash
the problem is date filter not working with my logs (catalina) here is example:
you can see month name is in french abbreviation and timestamp ends with AM/PM
here is date filter I used
date {
match => [ "logdate", "MMM. dd, YYYY H:mm:ss a" ]
timezone => "Europe/Paris"
locale => "fr"
}
when I change locale to "en" and edit month name to English in log to debug, it works
but not with french month name, even if I used locale and timezone options.
any solution ? without asking client to change their logs output, and thanks
In the fr locale MMM consumes the ., so use MMM dd, YYYY H:mm:ss a without the period. In fact dec.must have the trailing .. If it is missing you will get a _dateparsefailure.
Note that Elastic have no say in this. Java defines which locales require a trailing . on abbreviated month names.
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.