-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[alerting] change eventLog schema to use dynamic false #61633
Conversation
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
resolves elastic#58518 Changes the object properties in the eventLog mappings to use `dynamic: false` instead of `dynamic: strict`. This provides a bit of a safety net for cases where the mappings change during development, or potentially in production cases. Rather than completely lose entire events and see errors in logs, we'll silently drop properties from events. While researching the `dynamic` property, I remember there's also a `meta` property available, which is a convenient place to drop our meta-data about a field being an array value, for internal processing. Bonus, it can live in the generated mappings as well. references: - https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-field-meta.html - https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html
90094a2
to
81f33b7
Compare
💚 Build SucceededTo update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolves elastic#58518 Changes the object properties in the eventLog mappings to use `dynamic: false` instead of `dynamic: strict`. This provides a bit of a safety net for cases where the mappings change during development, or potentially in production cases. Rather than completely lose entire events and see errors in logs, we'll silently drop properties from events. While researching the `dynamic` property, I remember there's also a `meta` property available, which is a convenient place to drop our meta-data about a field being an array value, for internal processing. Bonus, it can live in the generated mappings as well. references: - https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-field-meta.html - https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html
resolves #58518 Changes the object properties in the eventLog mappings to use `dynamic: false` instead of `dynamic: strict`. This provides a bit of a safety net for cases where the mappings change during development, or potentially in production cases. Rather than completely lose entire events and see errors in logs, we'll silently drop properties from events. While researching the `dynamic` property, I remember there's also a `meta` property available, which is a convenient place to drop our meta-data about a field being an array value, for internal processing. Bonus, it can live in the generated mappings as well. references: - https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-field-meta.html - https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html Co-authored-by: Elastic Machine <[email protected]>
resolves #58518
Changes the object properties in the eventLog mappings to use
dynamic: false
instead of
dynamic: strict
. This provides a bit of a safety net for caseswhere the mappings change during development, or potentially in production
cases. Rather than completely lose entire events and see errors in logs, we'll
silently drop properties from events.
The
dynamic
setting on all inner objects isn't actually needed, it's inherited from the top.While researching the
dynamic
property, I remember there's also ameta
property available, which is a convenient place to drop our meta-data about
a field being an array value, for internal processing. Bonus, it can live in
the generated mappings as well.
references: