I am trying to get logstash to ingest the time column correctly into elasticsearch but it is not working. I am stuck and need help.
in the csv I am trying to ingest the time looks like this:
2024-09-01 12:10:40.309
My Logstash Conf file looks like this in relation to the time column
mutate {
gsub => ["time", "IST", "Asia/Kolkata"]
}
date {
match => [ "time", "yyyy-mm-dd'T'hh:mm:ss'Z'"]
target => "time"
}
When I view the data in Elasticsearch the time column is showing up as text and not date. Can someone please help figure this out. I don't understand what is happening.
One time I was able to get it to ingest like this, however out of 52,000 documents it only ingested 900. I have 8 CSVs I need to ingest all with the same time format.
Sep 3, 2024 @ 06:05:55.000
Can I adjust the time column from text to date after it has been indexed?