All Apps and Add-ons

Changing the incident_key parameter

hcannon
Path Finder

This app is sending over an incident_key parameter in each message when triggering a PagerDuty alert. The incident_key parameter seems to default to the Splunk saved search name.

This is causing an issue: when an alert triggers multiple times, the message is attributed to the already open PagerDuty incident (which had been acknowledged) and not triggering a new page.

I need to be able to update the incident_key parameter to either not use the Splunk saved search name and instead use a token from the search results, or just do something basic like throw a datestamp in there, so that a new pager duty incident is created each time the Splunk alert fires.

I've poked around in the app code and the area where the saved search name is attributed to the incident_key isn't jumping out at me, so looking to see if anyone else has successfully changed this parameter or has any suggestions.

Example of the json snippet that PD app is sending to the PD events API:

{
  "client": "Splunk",
  "client_url": ".../app/SplunkEnterpriseSecuritySuite/@go?sid=scheduler__xxx__xxx_at_1514723580_78469",
  "description": "Saved Search Name",
  "details": {
    "info": "high",
    "column": "severity"
  },
  "event_type": "trigger",
  "incident_key": "Saved Search Name",
  "service_key": "xxxxxxxxxxxx"
}
0 Karma

AndySplunks
Communicator

Ever figure out a solution to this issue?

0 Karma

DanielPi
Moderator
Moderator

Hi @AndySplunks ,

I’m a Community Moderator in the Splunk Community.

This question was posted 6 years ago, so it might not get the attention you need for your question to be answered. We recommend that you post a new question so that your issue can get the  visibility it deserves. To increase your chances of getting help from the community, follow these guidelines in the Splunk Answers User Manual when creating your post.

Thank you! 

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...