Sumo Logic Alerts
The built-in Sumo Logic trigger initiates flows when it receives a request from a webhook in Sumo Logic.
- Go to the Triggers tab in the palette, expand the App Triggers section, and drag the trigger onto the canvas.
- Double-click the trigger (or click the pencil icon).
- Set the authenticating user, and then copy the URL — you'll use this to set up the webhook in Sumo Logic.
Alternatively, you can create an integration user to use as the authenticating user.
- Click the Flood Control tab to edit the trigger's default flood control settings. For more information about these settings, see Trigger Flood Control.
- Connect the steps you want to run when xMatters receives a request to that URL.
You're now ready to configure Sumo Logic to target the trigger.
Configure Sumo Logic to send requests to the trigger URL
To have Sumo Logic send alerts to the flow trigger, you need to configure a webhook and set it to use the trigger URL.
- In Sumo Logic navigate to the left-hand menu, expand Manage Data then select Alerts.
- Select the Connections tab then click on the + button in the tab to open the Select Connection Type page.
- On the Select Connection Type page, select Webhook.
- On the Create Webhook Connection page, fill in the following fields:
- Name: Give your webhook a unique, descriptive name.
- Description (optional): Describe the purpose of your webhook.
- URL: Paste the trigger URL you copied from the Sumo Logic trigger in Flow Designer.
- Add the target names of any recipients you want xMatters to notify when the monitor creates an alert. For example, if you want to notify Emma Pearson, Mary McBride, and the on-call members in the Monitor Team responsible for the service, you'd add ?recipients=epearson,mmcbride,monitor%20team to the URL.
- You must URL-encode any special characters or spaces in the target names.
- Authorization Header (optional): If you want to use Basic Authentication, you must Base64-encode your username and password. See the Sumo Logic documentation for instructions on how to fill in the Authorization Header field.
- Custom Headers (optional): You may enter up to five comma-separated key-value pairs, or leave this field blank.
- Payload: Paste the following code into the payload field.Copy
- To check that the webhook was created successfully and that alerts go to the right recipients, click Test Connection.
- Click Save to create the webhook.
You're ready to use the webhook to trigger automated flows, including steps such as sending alerts and initiating incidents, though we always recommend testing before putting things into use.
The trigger has the following outputs you can use as inputs to steps further along the flow.
|List of targeted recipients. Recipients are set by adding a recipients query parameter to the trigger URL when you configure the webhook in Sumo Logic. See the instructions for configuring the webhook for details.|
|Signal Mode||Determines the path the flow will take, based on the value of Trigger Type parameter.|
|Signal ID||Key or identifier used to terminate or correlate signals.|
|Description||Description of the alert.|
|Fired Time||Time the alert was triggered.|
|ID||Unique ID of the alert in Sumo Logic.|
|Name||Name of the monitor in Sumo Logic.|
|Number of Query Results||Number of results returned from the query in Sumo Logic.|
|Query URL||Direct URL to the related query in Sumo Logic.|
|Trigger Condition||Condition that triggered the alert.|
|Trigger Type||Status of the alert in Sumo Logic.|
|Query||Query used to run the alert.|
|Raw Request||JSON representation of the request. You can parse the raw request if you need additional details beyond the standard outputs.|