Change timestamp format

Hi. I've searched the forum for similar problems but I found no solution.

I want to change my timestamp format from "MMM/dd/yyyy HH:mm:ss Z" to "yyyy-MM-dd HH:mm:ss". How do I do it in Logstash? I need this because I'm comparing this field with another timestamp field from database input through jdbc_static filter (I use the timestamp as parameter in jdbc lookup).

Thank you for the help.

If you need to specify the format of a datetime then use a ruby filter and strftime.

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