-
Notifications
You must be signed in to change notification settings - Fork 25k
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
ecs@mappings: support all date fields when date_detection is disabled #112398
Comments
When adding these fields, we should update |
Note that the last dynamic template in |
I can verify that when setting Either way, I proposed a fix to mitigate this issue. |
Here is related issue: #109381 |
Situation
The ecs@mappings component template supports all the fields in ECS.
For date fields, it supports the following naming conventions:
elasticsearch/x-pack/plugin/core/template-resources/src/main/resources/ecs@mappings.json
Lines 138 to 162 in 212fe03
Problem
The mapping works in all circumstances for the date fields that match the above naming convention.
However, other data fields do not match this naming convention:
These fields are generally mapped as dates thanks to the date_detection dynamic field mapping option, enabled by default.
If date_detection is disabled, Elasticsearch will not map these fields as date, creating unexpected mapping problems.
Conslusion
ecs@mappings should support all the data fields in ECS by extending the naming convention, even if integration devs or end users disable date_detection for any reason.
References
The text was updated successfully, but these errors were encountered: