Hi everyone,
i have a problem with the timestamp month's name matching.
I have "29/Apr/2015" in the log file, if i set date locale = en, it works fine.
If i set date locale = it, it doesn't match more.
I can't find the problem! Is this related to my PC language settings?
Apparently, with Italian locale settings the abbreviated name of the month of April isn't "Apr" (perhaps it's "apr"—I believe the matching is case-sensitive), so the matching fails. Unless your logs actually contain Italian month names just set the locale parameter to English. With no explicit locale parameter set for the date filter it'll use the system default locale.
Thanks magnusbaeck,
after a long sequence of little tests I have found out exactly the problem!
With the locale option setted on "it", Logstash works in case sensitive mode and don't recognize "Apr", instead "apr", yes!
If the locale is setted on "en", Logstash is not case sensitive! and works in every case!
It's seems to be a bug, because with the previous version of Logstash, the 1.4.2, i did not have problem (with the same data source), but now i'm working with Logstash 1.5.2.
One more thing, in the official documentation, the example works with the month's name letter in upper-case of timestamp data source.
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.