My logstash configuration file like this
After reading the csv file I change the log_datetime field from "dd-MM HH:mm:ss" to "2024-05-23T01:18:07.000Z"
by the following configuration in test.conf
date {
match => [ "log_datetime", "dd-MM HH:mm:ss" ]
timezone => "America/New_York"
target => "log_datetime"
}
However, I find in my elasticsearch the log_datetime changed to text format.
With the similar configuration file in logstash.
For another source server it works fine. Any idea?