How to change date format when indexing

I have 2 date field in a CSV data, formatted as ==> MM/dd/YY HH:mm

How can i change the format to ==> YYYY/MM/dd HH:mm:ss
when am indexing it using logstash ?

I want to save the field as date in elastic, not as a string or text. How can i do that ?

When i tried date match as below, field become string in elastic

date {
match => ["Incident_Close_Date" , "MM/dd/YY HH:mm"]
timezone => "Etc/UTC"
}
date {
match => ["Incident_Create_Date" , "MM/dd/YY HH:mm"]
timezone => "Etc/UTC"
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.