Skip to content

Add option to output nanoseconds in date ingest processor #42523

@droberts195

Description

@droberts195

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions