I've been scratching my head for hours trying to figure out why the following datetime format failed to be properly detected by date filter of logstash.
I have the following sample data from csv file:
09-Jul-16 10:00:00 PM SGT,64.2
09-Jul-16 10:15:00 PM SGT,64.3
09-Jul-16 10:30:00 PM SGT,63.9
I've used the following filter to separate the two column and after that try to use the first column to set the @timestamp:
csv {
columns => ["datadate", "rh"]
separator => ","
}
date {
match => [ "datadate", "dd-MMM-yy h:mm:ss a z" ]
}
however, the date filter failed to match with _dateparsefailure in the indexed data. Can anybody point to me where did I make the mistakes?
Thanks.