Earlier blog entry shows you how to send Skyline Findings to Jira. Here is an example to send to PagerDuty.
First, you need to generate a token from PagerDuty for the script to use.

Now you need to format the Skyline Findings data. This was also done in previous JIRA and Slack examples. NOTE: $1 is the filename.
1 2 3 4 5 |
FINDINGID=`cat $1 | grep -v Finding | sed s/" "/""/g | sed s/","/" "/g | awk '{print $1}' | sed s/'"'/""/g` SOURCE=`cat $1 | grep -v Finding | sed s/" "/""/g | sed s/","/" "/g | awk '{print $6}' | sed s/'"'/""/g` HOST=`cat $1 | grep -v Finding | sed s/" "/""/g | sed s/","/" "/g | awk '{print $7}' | sed s/'"'/""/g` KB=`cat $1 | grep -v Finding | sed s/" "/""/g | sed s/","/" "/g | awk '{print $13}' | sed s/'"'/""/g` |
Now let’s put this together. Enter your desired TOKEN and ID. This is unique to your account and environment. The page to send to is very generic https://api.pagerduty.com/incidents.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/vnd.pagerduty+json;version=2' --header 'From: nguyenso@vmware.com' --header 'Authorization: Token token=YOUR-TOKEN-HERE' -d '{ "incident": { "type": "incident", "title": "'"$FINDINGID, $SOURCE, $HOST, $KB"'", "description": "'"$FINDINGID, $SOURCE, $HOST, $KB"'", "service": { "id": "IDXXXX", "type": "service_reference" } } } ' 'https://api.pagerduty.com/incidents' |



Please check your PagerDuty UI as soon as you get the confirmation. Acknowledge immediately or you will get alert calls constantly.
Thank you for the sending instruction. He helped me a lot in solving my problem.
that is fantastic. if you find anything new that you are willing to share, please do. will help others in the community.