I´m trying to parse a date field called "ReceiveTime" which has the following format:
ReceiveTime=2020/03/03 16:47:56
i´m using the next filter in Logstash:
date {
match => [ "ReceiveTime", "yyyy/MM/dd HH:mm:ss"]
timezone => "America/Chicago"
}
The thing is I got a _dateparsefailure, it´s not working.
Anybody knows how to parse this kind of date using date filter? I would like to ingest the logs with this timestamp field, called ReceiveTime.
Thank you ver much in advance.
Any idea? maybe problem is in HH:mm:ss, because that part seems to be empty.
Btw, as I told before the value of this field is, for example:
ReceiveTime=2020/03/03 16:47:56
When I see the source log I can see the ReceiveTime value, and it´s like I said before.
I think maybe the problem is kv is not filtering properly the value field, so only date part is parsed but not time part.
Could it be?
This is part of the source log, which includes the ReceiveTime field:
ReceiveTime=2020/03/03 16:47:56|SerialNumber=099123|cat=THREAT|Subtype=vulnerability|
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.