Logstash Version: 7.10.1
OS: Debian 10 Buster
Architecture: x86-64
Kernel: Linux 4.19.0-11-amd64
I'm trying to parse this date:
20210128 94501065
The pattern is:
date {
match => ["timestamp", "yyyyMMdd HmmssSSS"]
target => "@timestamp"
}
It fails.
"timestamp" => "20210128 94501065",
"_dateparsefailure"
"@timestamp" => 2021-01-28T15:05:28.283Z,
But I noticed something interesting, if I modify the log to:
20210128 9:45:01.065
So the pattern will be:
date {
match => ["timestamp", "yyyyMMdd H:mm:ss.SSS"]
target => "@timestamp"
}
It succeed:
"timestamp" => "20210128 9:45:01.065",
"@timestamp" => 2021-01-28T12:45:01.065Z,
Date with 2 digits hour works fine:
20210128 104501065