[EPM] Dynamic mapping not being created for fields.yml entry #167553
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:EPM
Fleet team's Elastic Package Manager (aka Integrations) project
Team:Fleet
Team label for Observability Data Collection Fleet team
Kibana version: 8.10.2
Describe the bug:
Fleet is not creating
dynamic_templates
entries in the component template for all fields that are declared as dynamic fields (using a wildcard name andtype: object
). The problem appears to only occur when two fields are declared that seem to have a hierarchical relationship.I suspect that Fleet is not making a distinction between dynamic and static field mappings when considering what fields can be removed from the template because they are non-leaf fields. That logic should not apply to dynamic fields. In this case we saw
Item.*
be dropped and onlyItem.*.*
landed in the final template.Steps to reproduce:
Create a package with these fields. Install it. Then check the Elasticsearch component template.
Generated template:
Expected behavior:
Any additional context:
The text was updated successfully, but these errors were encountered: