[alerting event log] deal with migrating event log mappings over releases #55639
Labels
Feature:Alerting
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
v7.7.0
Each future Kibana release is likely to add additional ECS fields to the event log schema/mapping, and we'll have to deal with updating the mappings stored in the index template when a new release is detected.
Obviously we'll have to take care to not downgrade the mappings if a customer happens to run a new version and then later runs an old version, against the same ES. We're likely to see this in practice at development time, as we change the mappings during development of a release.
One saving grace is that ECS generally never removes fields, only adds them. We'll want the event log to be similar.
Currently the mappings that we're generating use
dynamic: "strict"
for object properties, but to be more flexible and forgiving, we probably want to usefalse
instead of'strict'
.In that case, fields in a document that aren't in the mappings are ignored, instead of causing an error.
see: https://github.com/elastic/kibana/blob/master/x-pack/plugins/event_log/generated/mappings.json
The text was updated successfully, but these errors were encountered: