Update the state of Alert based on Event Resolution State

HarshvardhanG
Tera Contributor

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?

13 REPLIES 13

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.

@HarshvardhanG 

 

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

 

@HarshvardhanG 

 

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

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.

@HarshvardhanG 

 

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

Bhuvan_1-1756217676043.png

Corresponding CLEAR Event

Bhuvan_0-1756217621615.png

Corresponding Alert

Bhuvan_2-1756217810291.png

 

If my responses were helpful, please mark the posts helpful & accept the solution.

 

Thanks,

Bhuvan