Splunk On-Call (VictorOps)
Splunk On-Call (VictorOps) is a collaboration and incident management platform for on-call teams. This integration can be used to trigger workflows when it receives any incoming signal for alerts. With the help of the integration, incidents can be rerouted or resolved in the workflows.
Splunk On-Call (VictorOps) in a Spot Connect workflow enables you to:
- Trigger a Spot Connect workflow when there is an alert.
- Reroute Splunk On-Call (VictorOps) incidents.
- Resolve Splunk On-Call (VictorOps) incidents.
Configure Splunk On-Call (VictorOps) in Spot Connect
- In the left main menu, click Connect and click Settings.
- Under the Integrations tab, select Splunk On-Call (VictorOps).
- Configure a new integration instance with the information below.
Details needed to set up a Splunk On-Call (VictorOps) instance in Spot Connect:
Parameter | Description | Required |
---|---|---|
Integration Alias | A name for the integration instance | True |
App ID | API ID obtained from Splunk On-Call (VictorOps) | True |
App Key | API Key obtained from Splunk On-Call (VictorOps) | True |
Follow these steps in your Splunk On-Call (VictorOps) account to obtain the desired parameter values to enter in Spot Connect:
-
Sign in to your Splunk On-Call (VictorOps) account using your credentials.
-
In the top navigation bar, click Integrations.
-
Next to Third Party Integrations tab, click the API tab.
-
Copy your API ID.
-
Click New Key.
-
Enter a descriptive name for the API key in the Description field.
-
(Optional) Mark the Read-only checkbox if you want to restrict the key's permissions to GET requests.
-
Click Create Key.
-
Retrieve your API Key.
-
In the Spot Connect console, click the Integrations page.
-
Click Add Integration.
-
Enter a name for the integration alias.
-
Paste API ID and API Key previously retrieved.
-
Click Add Instance.
Integration Actions
You can add these actions in the Spot Connect workflow builder as part of your workflow.
- Splunk On-Call (VictorOps) Trigger
- Splunk On-Call Resolve Incidents
- Splunk On-Call Reroute Incidents
Splunk On-Call (VictorOps) Trigger
To automatically execute a Spot Connect workflow with a Splunk On-Call (VictorOps) alert in real-time, complete the following steps to set up a webhook integration between Spot Connect and Splunk On-Call (VictorOps).
In Spot Connect
If you do not already have a Spot Connect API Key, create one by completing the following steps:
- In the left main menu, click Connect and click Settings.
- Scroll down and under Resources, click API Keys.
- Create an API Key and click Save.
Create a New Workflow
- In the left main menu, click Connect and click Workflows.
- Click New Workflow and enter a name for the workflow.
- Scroll down and select Splunk On-Call (VictorOps).
- Click Create Workflow.
- In the center panel of the workflow builder, click the Splunk On-Call (VictorOps) trigger node to open the right panel. Under Webhook API Key Name, select an API Key you created earlier.
- Compose your workflow and save it.
In Splunk On-Call (VictorOps)
-
Log in to your Splunk On-Call (VictorOps) account using your credentials.
-
In the top navigation bar, click Integrations.
-
Click Outgoing Webhooks.
-
Click Add Webhook.
-
Select your desired event type.
-
Select method to POST.
-
Add custom header. Put
x-api-key
in Key input field. -
Go to your workflow. Select trigger node. From the right panel, copy the Webhook API Key Value. Paste it into the Value input field.
-
Copy and paste Workflow Webhook URL from your workflow into the ‘To:’ input field.
-
Click Save.
Action Example
In your Splunk On-Call (VictorOps) account:
-
Click Incidents and then Create Incident.
-
Select Teams/Policies.
-
Enter an Incident Description.
-
Enter an Incident Body.
-
Click Create Incident.
-
Spot Connect receives the incident webhook request and triggers your workflow.
Execution:
Splunk On-Call Resolve Incidents
Use this action node to resolve a list of Splunk On-Call (VictorOps) incidents.
Input
Parameter | Description | Required |
---|---|---|
Splunk On-Call Instance | Splunk On-Call (VictorOps) integration instance. | True |
Incident Numbers | List of incidents to reroute | True |
Username | User to resolve incidents | True |
Output
Parameter | Type | Description |
---|---|---|
execution_message | Object | JSON of Splunk On-Call resolve incident execution |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
- In the Spot Connect console click Workflows and then New Workflow.
- Give your workflow a name and select Manual Trigger.
- Click Create Workflow.
- From the left panel, drag and drop Splunk On-Call Resolve Incidents action node in the workflow builder.
- Select an instance in the Splunk On-Call Resolve Incidents drop-down menu and then your Splunk On-Call Instance.
- Provide the Incident Number(s) you want to resolve.
- Select Username and click Run Now.
Input
Output
Splunk On-Call Reroute Incidents
Use this action node to reroute a list of Splunk On-Call (VictorOps) incidents.
Input
Parameter | Description | Required |
---|---|---|
Splunk On-Call Instance | Splunk On-Call (VictorOps) integration instance | True |
Incident Numbers | List of incidents to reroute | True |
Username | User to reroute incidents | True |
Target Users | Select one or more users to reroute incidents to | False + |
Target Policies | Select one or more escalation policies to reroute incidents | False + |
+ Target Users and/or Target Policies are required for rerouting incidents.
Output
Parameter | Type | Description |
---|---|---|
execution_message | Object | JSON of Splunk On-Call reroute incidents execution |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
In Spot Connect:
- In the Spot Connect console click Workflows and then New Workflow.
- Give your workflow a name and select Manual Trigger.
- Click Create Workflow.
- From the left panel, drag and drop Splunk On-Call Reroute Incidents action node in your workflow builder.
- Select an instance in the Splunk On-Call Reroute Incidents drop-down menu and then your Splunk On-Call Instance.
- Provide Incident Number(s) you want to reroute.
- Select Username and click Run Now.