How to Integrate Splunk with PagerDuty
Splunk collects and indexes data from just about any source imaginable, such as network traffic, Web servers, custom applications, application servers, hypervisors, GPS systems, stock market feeds, social media, and preexisting structured databases.
Splunk can be configured to pass all alerts to PagerDuty. Using PagerDuty, you can receive your Splunk alerts via phone call, SMS, or email; configure automatic escalation of alerts; escalate alerts right from your mobile phone; and set up on-call duty scheduling.
What you’ll need to get started
Setting up Email integration
Splunk can integrate with PagerDuty either through the email API or through a Splunk Integration available from the Splunk Community
- Create an email service
- Chose your integration email address
- Create an alert in Splunk
- Enter the PagerDuty email
Using API integration (beta)
Another alternative is to use the Splunk integration
- You can either build from the source on github or download pagerduty.spl
- Create a generic API service
- Note the API key
- In Splunk, from the app menu, select “Manage Apps” and then press “Install app from file”
- Upload pagerduty.spl to Splunk
- When you install the app, you’ll be given a chance to enter your API Key:
- Enter “pagerduty.py” in the “Run a script” field
Note, you can use both methods simultaneously by creating 2 services in PagerDuty and filling in both the “Run a script” and “Send email” fields.