Ruby filter to convert date

I do not understand what you are trying to do with .to_datetime. If you want it to be a LogStash::Timestamp you can just

event.set( varFieldName, { 'date' => varDateStringToDate} )
1 Like