-
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
Investigate how alerting handles index pattern field changes and removals #93501
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
I'm thinking this is about rule type authoring vs an alerting framework thing? So we need to make sure all the rule type executors are "safe" when it comes to dealing with runtime fields? |
We should inform #92753 about other rule types. |
I posted a comment #92753 (comment) regarding the other rule types. |
To investigate this, I used the
Index threshold rule typeThere are 3 places to specify fields within the Index threshold rule: timestamp field, metric aggregation field and group by field. On runtime field create On runtime field update
When updating from
When updating from
On runtime field delete Elasticsearch query rule typeThere are 2 places to specify fields within the Index threshold rule: timestamp field and within the query DSL. Using runtime fields in the timestamp exhibited the same behavior as described above for the Index threshold alert. Behavior of the DSL query itself depended on the content of the query and the type of runtime field mapping update. For example, I set up a rule with a range query on a numeric runtime field and then updated the mapping to be keyword and the query executed without errors (just no hits). I also set up a rule with a term query on a keyword runtime field and then updated the mapping to be numeric and received a
|
I think in the short term, we should be logging better error messages when rule execution fails due to this condition. In the long term, would we want to validate the fields used in the query before executing the query? Seems like overkill to do it on each rule execution, but when/where would we want do this? Maybe this could be something that is done as part of the explain feature if we implement that? At least at that point, the user could see the underlying query that is run for a rule. |
See #92753.
Investigate how alerting handles index pattern field changes and removals.
The text was updated successfully, but these errors were encountered: