[Fleet] Don't add ecs@mappings
component template when dynamic: runtime
is used.
#189371
Labels
Team:Fleet
Team label for Observability Data Collection Fleet team
Describe the feature:
Don't add
ecs@mappings
component template to index templates managed by Fleet that usedynamic: runtime
.Describe a specific use case for the feature:
When using
dynamic: runtime
at the data stream level, the package developer probably don't want to provide mappings for fields that are not explicitly defined in the package. We have seen cases where the inclusion ofecs@mappings
starts applying mappings to fields that were not previously mapped. This can cause issues with intermediary objects.More specifically, we saw that the APM package was using
dynamic: runtime
and was not providing mappings forrelated.ip
andrelated.host
. After 8.13 this package started usingecs@mappings
. Then mappings were added for these fields, but not for the intermediary objectrelated
, what causes issues.Related issues:
ecs@mappings
is added to all data streams since Add reference to ecs@mappings for each index template #174855.The text was updated successfully, but these errors were encountered: