I'm always having dateparsefailure while doing a simple date filter to convert a string to date. The date format that I am passing is this:
2018-05-10 11:36:15
And right now in the conf file I have:
date {
match => ["ServerTimestamp", "yyyy-MM-dd HH:mm:ss"]
target => "ServerTime"
}
The field ServerTimestamp is a string. I have changed the date filter a lot of times (YYYY-MM-dd and on) and I'm always having dateparsefailure so I have no idea what am I doing wrong.
If your events contained a field called ServerTimestamp in that format then that date filter would parse it, and not add a _dateparsefailure tag. So I infer that either the field is not named ServerTimestamp, or it is not in that format. Can you show us an event using output { stdout { codec => rubydebug } }, or if you are using Kibana, copy and paste from the JSON tab in Discover.
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.