All Apps and Add-ons

PagerDuty App for Splunk: How to configure link from PagerDuty incident to Splunk?

mhaggerty55
New Member

I’ve integrated pager duty and Splunk, and I’m successfully seeing alerts from Splunk in pager duty. However, when I go to an incident detail and click on “view in splunk,” I get an error saying “The site can’t be reached.”

I’ve noticed the hostname is wrong. It’s using splunk:8000 when it should be using my_splunk_hostname:8000.

Any ideas how I can configure the link? I've already asked PagerDuty support, but they suggested I ask here too.

alt text

0 Karma

arughra
Observer

What worked for me is that I had to modify the command field in pagerduty_incidents app to remove results_link=%results.url%

/etc/apps/pagerduty_incidents/local/alert_actions.conf

[pagerduty]  
command = sendalert $action_name$ results_file="$results.file$"  
hostname = http://hostname.domain.com

 

0 Karma

bkrueger_splunk
Splunk Employee
Splunk Employee

You need to update the hostname setting under alert_actions.conf (If you don't have a local alert_actions.conf, create one and add the stanza & hostname setting below)

Should look like this:
[default]
hostname=your_hostname_here

Here is the link to the relevant docs
http://docs.splunk.com/Documentation/Splunk/latest/Admin/Alertactionsconf?utm_source=answers&utm_med...

mattymo
Splunk Employee
Splunk Employee

My guess is that the alert action may not be sending the client_url string in the alert payload that Pagerduty need to build that link?

Splunk:8000 sounds like a default entry, perhaps check the script that the pager duty app has in its bin folder to see how it constructs the call to the pagerduty url? ( i will check in my lab and follow up)

https://v2.developer.pagerduty.com/docs/trigger-events

I believe pagerduty provides the option to view he raw payload, can you post an example?

Splunks alert action args contain a results url that should work here. Is your Splunk instance available to the internet?

- MattyMo
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...