Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update ECS mappings added via import_mappings setting
Update dynamic templates for url.full and url.original fields added when
import_mappings setting is enabled
  • Loading branch information
mrodm committed Jan 14, 2025
commit cb95ed594d8fb9c7b7e2ffa68f2985746a23a730
8 changes: 6 additions & 2 deletions internal/builder/_static/ecs_mappings.yaml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated dynamic templates to be as similar as possible to the ecs@mappings component template:
https://github.com/elastic/elasticsearch/blob/09df99393193b2c53d92899662a8b8b3c55b45cd/x-pack/plugin/core/template-resources/src/main/resources/ecs%40mappings.json#L54-L69

Packages that rely on these dynamic templates should publish a new version in order to get the changes.

Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,18 @@ mappings:
text:
type: match_only_text
type: wildcard
path_match: '*.url.full'
# not available in 8.6.x
#unmatch_mapping_type: object
path_match: '*url.full'
- url_original_to_multifield:
mapping:
fields:
text:
type: match_only_text
type: wildcard
path_match: '*.url.original'
# not available in 8.6.x
# unmatch_mapping_type: object
path_match: '*url.original'
- user_agent_original_to_multifield:
mapping:
fields:
Expand Down