1. Home
  2. Integrations
  3. Sumo Logic Integration Guide – VictorOps

Sumo Logic Integration Guide – VictorOps


Sumo Logic is the industry’s leading, secure and purpose-built cloud-based machine data analytics service that leverages big data for real-time IT insights.

This integration utilizes Sumo Logic’s “Connections” option to send webhooks to the VictorOps REST endpoint, creating incidents in the timeline. The following guide will walk you through the steps needed to integrate the two platforms.

In VictorOps

In VictorOps, select Integrations. If the integration has not yet been enabled, click the “Enable Integration” button to generate your endpoint URL. Copy this URL for use in the Sumo Logic portion of integration configuration. Be sure to replace the “$routing_key” section with the actual routing key you intend to use.

In Sumo Logic

From the main dashboard select Manage then Connections.

sumo2

Add a new Connection.

sumo3

Select the Webhook connection type.

sumo4

Give the Connection a name and description. Paste in the URL you got from the VictorOps portal. No Authorization Header is needed. Finally copy the JSON payload below and paste it into the “Payload” box.

NOTE: Depending on your scheduled search settings you may want to use $SearchQuery for the “state_message” field in place of $SearchDescription

{“message_type”:”CRITICAL”,

“entity_id”:”{{SearchName}}”,

“state_message”:”{{SearchQuery}}”,

“Search Description”:”{{SearchDescription}}”,

“Search Name”:”{{SearchName}}”,

“Number of Raw Results”:”{{NumRawResults}}”

}

sumo5

Add as many additional fields to the payload as you would like.

sumo6

Make sure to test the connection and make sure you get a 200 response code.

Lastly you will need to add the VictorOps “connection” to one of your scheduled searches. To do this, select Library and then choose one of your searches.

sumo7

From the search screen select Edit.

sumo8

Select to Edit this search’s schedule >

sumo9

Under “Alert Type” select Webhook and then choose the VictorOps webhook we set up earlier.

You also have the option to “Customize Payload” for individual searches, you can add or edit any field on a per search basis.

Finally, click save and you are done!

sumo10

 

Updated on July 26, 2021

Was this article helpful?

Related Articles