Update the state of Alert based on Event Resolution State
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi,
I’m looking to update the state of an alert based on changes to the event resolution state. Specifically, when the event resolution state is set to "Closing", I want the corresponding alert to reflect this change automatically.
Could anyone guide me on how to implement this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for the detailed explanation! I have one more doubt:
If an event's severity changes to "Clear" with the same message key, will the associated alert automatically close? Is my understanding correct?
In my ServiceNow instance, even when a "Clear" event is received, the severity doesn't update. Instead, only the resolution state of the event changes to "Closing," which results in the alert remaining in the open state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Yes your understanding is correct. When an event with severity Info or above is received in ServiceNow, it would create an alert. If source sends message key field value, event/alert would be created with this message key. If message key field value is empty then Source, Type, Node, Resource, and Metric Name fields are used in created alert.
When an event with severity CLEAR is received with same message key, alert would be resolved. Refer below link for more information on event, alert and incident relationship and how Alert state changes,
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0756521
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Did you get a chance to review this ?
If my response helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Bhuvan , your response is really helpful and really thanks for the kb article. But I am still not sure why in my system alerts are not closing even if an event is closing or clear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
As you can read from knowledge article, there are few scenarios which can lead to alerts not closing even if CLEAR event is received.
Can you share screenshots of PROBLEM event, CLEAR event and Alert & I can see if I can provide more information.
Sample - PROBLEM Event
Corresponding CLEAR Event
Corresponding Alert
If my responses were helpful, please mark the posts helpful & accept the solution.
Thanks,
Bhuvan