How to extract date from some field containing Date and time in logstash

hello there,
I'm trying to dump data from My Sql to elastic search but i have one field called "eventTime" which contains both date and time.
eg. 04/05/2019 15:23:45
now I want to extract this date from the field and dump the data to ES.
it's been so many days that i'm trying to get a solution but couldn't find any.
@magnusbaeck hope to get a reply soon ,
thanks .

How about

grok { match => { "eventTime" => "^(?<date>[0-9/]{10})" } }

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