Associate past incident with new alerts
Asked by Marc-Antoine Sulmon:

Hi,

I would like to know if OpsGenie is able to provide or suggest some past incident when a certain pattern of alerts are coming.

For instance, one day we receive this pattern of alert :

- Alert "ABC"

- Alert "AZE"

- Alert "MNO"

Those alerts are associated to an incident. They incident is solved and some actions to solve the issue are logged into the incident. Those actions could help any futur analysis and mitigation action.

Then few days later, OpsGenie receive the same pattern of alert :

- Alert "ABC"

- Alert "AZE"

- Alert "MNO"

Is their any functionality to indicate to the responder that a past incident has been created and it could be helpful for him to have a look in the remediation plan ?

Thanks for your help on this !

Regards


Answers:
author: Connor Eyles
body: Hi [@Marc-Antoine Sulmon](/t5/user/viewprofilepage/user-id/1487969)

Thanks for reaching out!

This is an interesting one, what I'm thinking is making use of auto incident creation rules here.

When you start to see a pattern occur for an incident for example:

* Alert "ABC"
* Alert "AZE"
* Alert "MNO"

You can create an Incident rule to match this pattern and assign it to a service. When this pattern occurs again this will create an incident for that service and your engineers can see previous Incidents for that service to find the remediation plan.

The great thing about the Incident rules is during the Incident and more alerts come filtering in, if they match the Incident rule and the Incident is open they will be auto associated to the open Incident.

Let me know how you feel about this suggestion and I can elaborate further if you would like!

The document for the Incident rules is - <https://support.atlassian.com/opsgenie/docs/automatically-create-an-incident-via-incident-rules/>

Thanks,

Connor

comments: author: Marc-Antoine Sulmon
body: Hi Connor,

This is not exactly what I am looking for.

"Searching" for past incident is not very effective, the idea is to have an automatic proposition of potential related incident.

A bit like the section "Related Community content" in the top right of this page :

![Capture d?e?cran 2021-12-17 a? 09.43.31.png](https://community.atlassian.com/t5/image/serverpage/image-id/174426iCB06561E6AFE6523/image-dimensions/276x135?v=v2 "Capture d?e?cran 2021-12-17 a? 09.43.31.png")

Thanks !


author: Nick OG
body: Hi [@Marc-Antoine Sulmon](/t5/user/viewprofilepage/user-id/1487969) ,

Like Connor mention, searching for past incidents is probably the best way to achieve this. But related incidents will also be listed under the Service that these incidents were created under as well:

![service1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/174476i7BC9CB2F4520002A/image-size/large?v=v2&px=999 "service1.jpg")

You can then click into these past incidents, review the timelines, postmortems, associated alerts that might be similar, etc. on what was done to get these previous / related incidents resolved:

![service2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/174477i084AF030957CFE1A/image-size/large?v=v2&px=999 "service2.jpg")![service3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/174478i807D2BDFFB43A3E2/image-size/large?v=v2&px=999 "service3.jpg")![service4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/174480i98477347D45879B2/image-size/large?v=v2&px=999 "service4.jpg")![service5.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/174479iC52FF8A2D727CDB5/image-size/large?v=v2&px=999 "service5.jpg")


author: Marc-Antoine Sulmon
body: Thanks,

But definitly i think we are not aligned :) I don't want to associate alert to a previously created incident.

To be more precise : is it possible to search incident by associated alert :

"I want to get all incident containing alert "Alert ABC" and "Alerte AZE" ?"

Regards


author: Nick H
body: There isn't a way to search incidents by associated alerts. You could search for these alerts with a [query](https://support.atlassian.com/opsgenie/docs/search-queries-for-alerts/) like:

message: "ABC" AND details.key: "incident-alert-type" AND details.value: "Associated"

![assoc1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/174948i4DA8857DB7866EBD/image-size/large?v=v2&px=999 "assoc1.jpg")

And click into each incident through the alert that way:

![assoc2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/174949i38830B0FDBE2FE2C/image-size/large?v=v2&px=999 "assoc2.jpg")

This is what can be used to query the Incidents tab:

<https://support.atlassian.com/opsgenie/docs/search-syntax-for-incidents/>


Tags: cloud