I looked at the Elasticsearch date format docs after reading this post and can't find the format for a date of the form YYYY-mm-dd HH:mm:ss,SSSS, e.g., 2017-03-29 10:00:00,123, where there's a comma for the milliseconds part. The log looks like
2017-03-29 10:00:00,123 INFO [com.company.app] This is a log
and my Grok filter to get the log date is
filter {
if [type] == "artim-learning" {
grok {
match => {
"message" => [
"%{TIMESTAMP_ISO8601:logdate} ....other fields..."
}
}
}
}
}
The default Logstash mapping maps "logdate" as a string. If I want to map it as a date, what format do i use?
Thanks.