-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Avoid subobject/scalar mapping conflicts by setting subobject…
…s: false on custom integrations (#178397) In case of a property in indexed documents is sometimes a scalar value (e.g. a number or string) and sometimes an object with sub-properties, mapping conflicts will prevent data from being indexed properly. The `subobjects` mapping property makes sure no additional subobject mappings will be defined during runtime. You can learn more here: https://www.elastic.co/guide/en/elasticsearch/reference/current/subobjects.html This PR sets `subobjects: false` on logs data streams for custom integrations to avoid. This only affects newly created integrations. The setting is set via the `@package` component template. This only requires a small change in the generated datastream entry, as `index_template.mappings` are already spread into the index config of the component template: https://github.com/elastic/kibana/blob/c98ee2f6c10992f372ebea4ce7d91f02a68fce5c/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.ts#L380
- Loading branch information
Showing
2 changed files
with
151 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters