Skip to content
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

Closed
droberts195 opened this issue May 24, 2019 · 4 comments · Fixed by #61324
Closed

Add option to output nanoseconds in date ingest processor #42523

droberts195 opened this issue May 24, 2019 · 4 comments · Fixed by #61324
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >enhancement Team:Data Management Meta label for data/management team

Comments

@droberts195
Copy link
Contributor

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.

@droberts195 droberts195 added :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP team-discuss labels May 24, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@martijnvg
Copy link
Member

We discussed this and it makes sense to make the output format configurable.
In this particular case a format using nanoseconds can be used. In other cases when even less granularity than ms is needed, this can then also be configured (which then allows storing the data more efficiently in the index). The default output format should remain yyyy-MM-dd'T'HH:mm:ss.SSSXXX.

@rjernst rjernst added the Team:Data Management Meta label for data/management team label May 4, 2020
@archon810
Copy link

We'd like to use microseconds and are running into the same issue. Can we give this one a bump please?

@archon810
Copy link

To be released in 7.10.0 and 8.0.0, correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >enhancement Team:Data Management Meta label for data/management team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants