I need to transform String field with numbers in format (yyyyddmmHHMM) to a Date field

I have logs from a Jenkins application and I need this LastCommitDate to be really a date, but it is a String image

How can i transform it to a Date field?
I need to transform even the past logs, so it will propably be needed to reindex but how to do it?

You can change the mapping for that field to type date and give it a format that matches your date string.

You will need to reindex or reingest your data once your mapping has changed.

Could you please give me an example for this?

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