Sumo Logic Workflow Steps
Sumo Logic Workflow Steps
Available in PagerDuty Runbook Automation Commercial products.
Sumo Logic provides cloud monitoring, log management, Cloud SIEM tools, and real-time insights for web and SaaS based apps.
The Sumo Logic workflow steps allows users to automate operational tasks - such as retrieving logs for incident diagnostics - by integrating with a Sumo Logic instance.
There are two Workflow Step plugins for Sumo Logic:
- Create and Execute Query Search Job - Executes a new logs query in Sumo Logic to surface log data in PagerDuty Runbook Automation.
- Execute a Saved Search Query - Executes an existing, saved logs query in Sumo Logic to surface log data in PagerDuty Runbook Automation.
Integration Setup
Sumo Logic Preparations
- In the Sumo Logic web app, click the login name in the left-nav and open the Preferences page.
- In the My Access Keys section, click + Add Access Key.
- The Create a Sumo Logic Access Key window appears.
- Enter a Name for the access key in the Name field. [To skip configuring the allowlist of domains from which the access key can be used to access Sumo APIs, go to step 8 below.]
- (Optional) In this step defines one or more domains that may use the access key to access Sumo APIs. Enter a domain in the Allowlisted CORS Domains field and click Add.
- The window updates, and displays the domain added. Repeat steps 5 and 6 to add additional domains to the allowlist.
- Click Create Key to generate the key.
- The window displays the generated Access ID and Access Key. Copy both before clicking Close. (These will only be shown once.).
Runbook Automation Setup
Add Access Key to Key Storage
- Click on the System Menu (gear icon in upper-right) and click on Key Storage.
- Click on + Add or Upload a Key.
- For the Key Type select the Password option.
- In the Enter Text field, paste in the Access Key that was copied from step 8 above.
- Provide a name for this key, such as
sumo-logic-access-key
:
Execute a New Query in Sumo Logic
- Add a new step to a new or existing Job by clicking on Add a Step:
- Click on the Workflow tab and in the Search Step field, type in
sumo
and hit return: - Select Sumo Logic / Create and Execute Query Search Job
- In the Credentials section, paste in the Sumo Logic Access ID.
- Use the Select button to define the path in Key Storage for the Access Key.
- In the Query String text box, place the Sumo logs query:
Tip
It is possible to include variables in the query by making use of Job Options and Context Variables.
For example, if the job uses a log filter to capture the_collector
from a prior step and saved in a variable${data.collector}
, this could be passed into the Query String: - Select a Time Range, such as
3s
,5m
,1d
. This is the relative look-back time for the query. For more details on the time range, see here. - [Optionally] Add a name for the Step Label.
- Click Save for the Job step.
Execute a Saved Query in Sumo Logic
- Perform steps 1 and 2 above to search for the Sumo Logic Job step plugins.
- Select Sumo Logic / Execute a Saved Search Query
- In the Credentials section, paste in the Sumo Logic Access ID.
- In the Search Job ID field, place in a saved Search query from Sumo Logic.
Note
This is the SESSION field for a query in Sumo Logic:
- [Optionally] Add a name for the Step Label.
- Click Save for the Job step.