-
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] the alert updated_at
field is no representative of the last update by a user
#82701
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
The assumption being that The possible solutions mentioned in #82658 are:
I'll add
Option 1 doesn't sound good - not clear what downstream effects might be if we do actually update the SO, but the Option 2 sounds like the most straight-forward thing to do. Add a new field in the alert SO to track this date, and update it on all the existing "update" call sites, but obviously don't update it when we update just the execution status. Option 3 sounds intriguing. Since we're basically adding the execution status bits to the event log for the |
I'm interested to understand how the Keep in mind that the alert will also be updated for enable/disable/muteAll/unmuteAll/updateApiKey. Also, updating the throttle can only be done via If the intent is to show customers the last time a "non meta data" aspect of the alert was updated, that I think we'd certainly want something like a new secondary field that only dealt with the "non meta data" updates. Eg, say the new field is |
One downside with this approach is that we'd lose the ability to filter alerts by status or by error reason. Some teams are depending on this capability for UX purposes |
We could still do those, but it would require adding filtering on the event log query (not supported right now), and presumably this would be a secondary query; eg, in the alert list we'd need to do a query on the SOs themselves for filters associated with SO things, and a second one against the EL for filters associated with execution status, and "join" the results. Sounds complicated. :-) I did want to mention the option of "woops, we shouldn't have added the execution status in the alert SO, let's get the data from somewhere else", since if there was a good answer there, we could go back to the way things used to be. Sounds like that's not going to be feasible short-term anyway. |
This was the assumption when we delivered #52738 (comment), which is why I marked this as a bug. When we delivered that original issue, the behaviour that we promised siem was that it would represent the last user update. |
That PR #53793 is confusing to me, as it mentions adding an Anyhoo, feels like we're going to need to add a real |
It's worth keeping in mind that this fix will probably require a Saved Object migration. |
Yeah, I'm curious whether we need a backport to 7.10, given the referenced issue #82658 doesn't seem to indicate this really "breaks" anything. Eg, if SIEM rules depended on this value in their alert type executors, I'd imagine this could be breaking things. It sounds like it's only visible in the UI though, so may be survivable through 7.10.x releases. |
So for this issue it sounds like:
Will it be too confusing to use |
The points above make sense to me 👍 I am indifferent on the naming, |
Sadly, Other than that, 👍 |
In this issue we made the assumption that the SavedObject's
updated_at
field is a correct representation of when an Alert has last been updated.As of the introduction of Execution Status this is no longer correct.
The text was updated successfully, but these errors were encountered: