Skip to main content
Sumo Logic

Webhook Connection for Opsgenie

Webhook connections rely on HTTP endpoints that tell Sumo Logic where to send data. You can set up any number of connections. 

Sumo Logic to Opsgenie Integration

Sumo Logic scheduled searches can send webhook alerts to Opsgenie that acts as a dispatcher and determines the right people to notify based on your on-call schedule.

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, it is used in Sumo Logic while setting up the Webhook Connection.
  1. Click Save Integration.

Your configuration in Opsgenie should look something like the following:

Webhook_Intergration_Example2.png

Configuration in 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 Connection.
  2. Use the Webhook Connection as the Alert Type in a scheduled search.

Create a Webhook Connection

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

  1. In Sumo Logic, go to Manage Data > Settings > Connections.
  2. Click + Add and choose Opsgenie as the connection type.
    Opsgenie webhook button.png
  3. Enter a Name and give an optional Description to the connection.
  4. Paste the Integration Url from Opsgenie (copied in step 2) into the URL field.
  5. (Optional) Enter an Authorization Header, which may include an authorization token.
  6. (Optional) Custom Headers, enter up to five comma separated key-value pairs.
  7. (Optional) Opsgenie uses the Priority value to define the priority of alerts.
  8. The following JSON is the default Payload, you can customize it as needed. For details on variables you can use as parameters within your JSON object, see Webhook Payload Variables.

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

     
  9. 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.