- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25.6k
Description
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.