0

I'm looking to create a custom date format for Elasticsearch. I have data in formats like:

yyyy-MM-dd'T'HH:mm:ss
yyyy-MM-dd'T'HH:mm:ss.SSS
yyyy-MM-dd'T'HH:mm:ss.SSSSSS

Is it possible to create a single custom date format to accept all 3 forms of the datetimes?

1 Answer 1

1

You can add multiple formats by separating them with || as a separator. Here is the link to the official documentation with an example.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.