I am using filebeat to feed csv files into logstash .Timestamp in the logs i need to process is as below.
11/05/2016-00:00:00,80,78,78,89
11/05/2016-00:05:00,80,78,78,89
11/05/2016-00:10:00,80,78,78,89
i use a simple filter in logstash
filter
{
csv {
separator => ","
}
date {
match => [ "message", "MM/dd/YYYY-HH:mm:ss" ]
}
}
I see following error in the logstash tail logs.
[2016-11-06T21:15:23,783][WARN ][logstash.filters.date ] Failed parsing date from field {:field=>"message", :value=>"11/05/2016-00:00:00,80,78,78,89,79,65,101,75,97,71,66,79,61,58,73,104,90,75,76,71,89,73,65,67,82,81,73,62,100,70,92,62,83,90,74,53,81,87,88,103,75,72,73,86", :exception=>"Invalid format: "11/05/2016-00:00:00,80,78,78,89,79,65,101,75,97,71,..." is malformed at ",80,78,78,89,79,65,101,75,97,71,..."", :config_parsers=>"MM/dd/YYYY-HH:mm:ss", :config_locale=>"default=en_US"}
Can anyone please help me with parsing "-" in the timestamp ?
Any help would be greatly appreciated.
br//