Alerts are not being closed after a clear event!

victorzepeda
Kilo Contributor

Hello Community.

I've created a event rule to filter incoming events and generate an alert when threshold is surpassed.

This is working as expected, however a desire funcionality is that, if we receive a clear event (Event with clear status), created alert should be closed automatically.

However this is not working, auto-clousure with an "Clear Event" is present only for all other alerts that are not involved with the event rule.

Also, the clear event is not being showed at alert's event related list, despite Message Key is the same for all events.

Event Rule's "Alert close Operator" was set to "None" cause other option is just "Flapping", and we are not using that Alert state.

 

Does the system uses anything else than Message Key to relate events to an alert?

Where (Business Rule, scheduled job) is the code of alert creation using an event? 

 

Any comment would be appreciate.

Best Regards.

5 REPLIES 5

stevemacamway
Giga Expert

The creation and handling of Events happens in multiple locations. The 2 I know of (and that may be all there are) are the Event Rules and Event Field Mapping. 

What is the value you are getting in the 'Severity' field of the Event? If it is not one of - Clear, Info, Warning, Minor, Major, or Critical, you'll need to use an Event Field Mapping configuration to map the incoming value(s) to one of the expected values. 

I don't know for sure, but I would assume that the 'Source' and 'Source' instance are included in the relating of Events. 

Steve

ayush_saxena
Tera Expert

The event transformation to alerts is primarily driven by event rules and event field mappings which are driven by script includes and hidden java code and Message key acts as the primary key for events. 

We are encountering the same issue with clear events , though the state changes to close when clear event is received via. source but severity doesn't.

 

We already tried event field mappings, doesn't hold good for clear events. Just curious if you were able to resolve this and how?

 

Regards, Ayush

 

David Pleasance
Kilo Contributor

I am experiencing a similar problem. Events, with the same Message key, and for which an Alert is open, are joined by a new "Clear" Event (Severity = "0"). However, the Clear Event does not Close the related Alert. Does anyone have an idea what could be driving this, or where in the platform I should be looking for an answer?

Chris Taylor
Kilo Explorer

I had the some problem with alerts not being closed by a clear event.

In my case the event rule, which matched both raising and clearing events, was setting the severity of the alert to Critical in the "Transform and Compose Alert Output" section.

If the event rule matching the clearing event sets the severity to something other than Clear, the alert does not seem to get closed.

You need to have a different event rule for the clearing event that does not set the severity.