Skip to main content
Sumo Logic

Webhook for Opsgenie

This page provides optional Opsgenie integration instructions. Note that the additional data produced from this integration is not utilized by the Sumo Logic Opsgenie App. 

Sumo Logic to Opsgenie Integration

You can monitor your infrastructure using Sumo Logic’s schedule search and send Webhook alerts to Opsgenie which manages these alerts and determines the right on call person to notify.

To add a Sumo Logic integration in Opsgenie, do the following:

  1. Go to Opsgenie Integration Page.

  2. Specify the following parameters:

  • Provide the Name.
  • Add the team who will be notified of Sumo Logic Alerts.
  • Copy the Integration URL, to be used in Sumo Logic while setting up the Webhook Connection.
  1. Click Save Integration.

Your Final Configurations at Opsgenie should look like this:

Webhook_Intergration_Example2.png

Configuration on Sumo Logic

In Sumo Logic, scheduled searches send alerts to other tools via Webhook connections. To send alerts from Sumo Logic to Opsgenie :

  1. Create a Webhook.

  2. Use the Webhook in a Sumo scheduled search configuration.

Create a Webhook

This section demonstrates how to create a Webhook connection from Sumo Logic to Opsgenie.

To create a Webhook, do the following:
  1. In Sumo Logic, go to Manage Data > Settings > Connections.

  2. Click + Add and choose Webhook as connection type.

  3. For the name, enter Sumo Logic Opsgenie and give an optional description to the connection.

  4. Paste the URL (used in step 2) into the URL field.

  5. Enter the following content in the Payload field:

 

{
 "searchName": "{{SearchName}}",
 "searchDescription": "{{SearchDescription}}",
 "searchQuery": "{{SearchQuery}}",
 "searchQueryUrl": "{{SearchQueryUrl}}",
 "timeRange": "{{TimeRange}}",
 "fireTime": "{{FireTime}}",
 "rawResultsJson": "{{RawResultsJson}}",
 "numRawResults": "{{NumRawResults}}",
 "priority" : "P3",
 "aggregateResultsJson" : "{{AggregateResultsJson}}"
}
  1. Click Save.

Configure a Scheduled Search

Scheduled searches are saved searches that run automatically at specified intervals. When a scheduled search is configured to send an alert, it can be sent to another tool using a Webhook Connection.

To set up a scheduled search for a Webhook Connection follow the steps in the Schedule Searches for Webhook Connections document.