- Version: 5.6.3
- Operating System: RedHat 7.4
- Sample Data: "2019-03-10 02:00:00" will not work.
- Steps to Reproduce:
create a file with the following value:
"2019-03-10 02:00:00"
Here is a Logstash config. file::
input {
beats {
port => "5046"
}
}
filter {
csv {
columns => ["UsageEndDate"]
separator => ","
}
date {
match => ["UsageEndDate", "yyyy-MM-dd HH:mm:ss"]
timezone => "America/New_York"
target => "newEndDate"
}
}
output {
stdout { codec => rubydebug }
}
==========================================
After kick off logstash, I am keep gettting _dateparsefailure:
{
"@timestamp" => 2019-04-08T18:08:49.064Z,
"offset" => 23,
"@Version" => "1",
"input_type" => "log",
"beat" => {
"name" => "kibana",
"hostname" => "kibana",
"version" => "5.6.3"
},
"host" => "kibana",
"UsageEndDate" => "2019-03-10 02:00:00",
"source" => "/mypath/aws-nc2.test",
"message" => ""2019-03-10 02:00:00"",
"type" => "log",
"fields" => {
"index" => "testing_aws"
},
"tags" => [
[0] "beats_input_codec_plain_applied",
[1] "_dateparsefailure"
]
}
I had no issue if the data is 2019-03-10 01:00:00
or any other hours, but only had issue with 02:00:00.
Thanks,
Noah