Oracle to Elastic search date conversion #logstash


Trying to insert records from Oracle db to Elastic search using logstash

I am getting default date format of field from oracle database is 2021-01-27T12:39:01.867Z

and I want to save a field in elastic search in format of yyyy-MM-dd-HH:mm

If a column in the database is a timestamp then the jdbc input will convert it to a Logstash::Timestamp type. You can reformat that as a string using ruby.

1 Like

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