Alerting

if I close one of the incident in Servicenow, for a host if alert triggers again. Will it create a new ticket or update the previous one with the same corelation id?

sag5757
Explorer

When an Alert_XYZ alert triggers and create new service now incident with correlation id like "Alert_XYZ:$result.host$", someone works on that ticket in Service Now and closes it. If the same alert (Alert_XYZ ) triggers for the same host again on next day. Does it open a closed incident and update it ? OR It will open a new incident with the same correlation id(Alert_XYZ:$result.host$).

I have a scenario which i have to implement : When an alert triggers in Service now through custom alert actions it should create an incident in servicenow . Till the time incident is not closed in servicenow same incident should be updated everytime if same alert triggers. But if the incident is closed in Servicenow then Splunk should create a new incident with new correlation ID.

Labels (1)
0 Karma

Dharmesh_93
Loves-to-Learn Lots

@sag5757 

The following steps ensure a unique correlation ID is created every time a new alert is triggered:

1) Append this query into the search portion of the alert action:

| eval unique_id= random() + now()


2) After that, navigate to Alert Action > Correlation ID > and put this for the value:

$result.unique_id$
3) Save the Alert Action.

By having a new, unique Correlation ID each time, a new incident should be created.

If you want to update the same incident, then make sure that the correlation ID which you are passing from Splunk should be same as ServiceNow ticket update works mainly with the correlation ID

0 Karma

sag5757
Explorer

@ansif Rahman and @KamleshVaghela. Hi ,Can you please provide any solution for this. i am not able understand how this correlation ID is working while doing Servicenow Integration.Please help

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...