-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to output nanoseconds in date ingest processor #42523
Comments
Pinging @elastic/es-core-features |
We discussed this and it makes sense to make the output format configurable. |
We'd like to use microseconds and are running into the same issue. Can we give this one a bump please? |
To be released in 7.10.0 and 8.0.0, correct? |
Since version 7.0 Elasticsearch mappings can support nanosecond precision timestamps via the
date_nanos
type. But the date ingest processor only outputs millisecond precision, so any nanosecond precision timestamp that is extracted via the date ingest processor is truncated to millisecond precision.The reason why this happens is that the output format of the date ingest processor is hardcoded to
yyyy-MM-dd'T'HH:mm:ss.SSSXXX
.Switching the date ingest processor to always output nanosecond precision timestamps might be a step too far - date fields would become more verbose, use more storage and might potentially cause backwards compatibility problems.
However, it would be nice if the ingest date processor had an option to output nanosecond precision timestamps if the user specifically asked for that.
The text was updated successfully, but these errors were encountered: