eurica / splunk_app_pagerduty

PagerDuty Alert - Trigger PagerDuty Incidents from Splunk Alerts.
http://splunk-base.splunk.com/apps/55908/splunk-app-for-pagerduty
Other
8 stars 7 forks source link

'IndexError: list index out of range' on Splunk 5.0 #2

Open ampledata opened 11 years ago

ampledata commented 11 years ago

Just installed the pagerduty splunk app and have configured it, but it fails to work. The splunk python.log shows the pagerduty.py script is being executed, but nothing is showing up in pagerduty (API key is set). When attempting to run the script by hand with the exact same arguments that are in the python.log (and after setting the splunk env vars), it fails with:

Traceback (most recent call last): 
File "/opt/splunk/bin/scripts/pagerduty.py", line 157, in <module> main() 
File "/opt/splunk/bin/scripts/pagerduty.py", line 152, in main description = details['events'][0]['_raw'] 
IndexError: list index out of range 

I am not certain this is the reason the app isn't working when executed by splunk though. But I couldn't find any errors from the app anywhere. This is with splunk 5.0 on ubuntu 12.04

ampledata commented 11 years ago

I just tested the app against Splunk 5.0.1 and alerts came through for me.

rogerhu commented 10 years ago

The issue is in this line of code: https://github.com/ampledata/splunk_app_pagerduty/pull/5