# Sumo Logic Workflow Steps

Available in PagerDuty Process 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 Query Example

# Integration Setup

# Sumo Logic Preparations

  1. In the Sumo Logic web app, click the login name in the left-nav and open the Preferences page.
  2. In the My Access Keys section, click + Add Access Key.

    Create Access Key
  3. The Create a Sumo Logic Access Key window appears.
  4. 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.]
  5. (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.
  6. The window updates, and displays the domain added. Repeat steps 5 and 6 to add additional domains to the allowlist.
  7. Click Create Key to generate the key.
  8. The window displays the generated Access ID and Access Key. Copy both before clicking Close. (These will only be shown once.).

# Process Automation Setup

# Add Access Key to Key Storage

  1. Click on the System Menu (gear icon in upper-right) and click on Key Storage.
  2. Click on + Add or Upload a Key.
  3. For the Key Type select the Password option.
  4. In the Enter Text field, paste in the Access Key that was copied from step 8 above.
  5. Provide a name for this key, such as sumo-logic-access-key:

    Add to Key Storage

# Execute a New Query in Sumo Logic

  1. Add a new step to a new or existing Job by clicking on Add a Step:

    Add Job Step

  2. Click on the Workflow tab and in the Search Step field, type in sumo and hit return:

    Search for Step

  3. Select Sumo Logic / Create and Execute Query Search Job
  4. In the Credentials section, paste in the Sumo Logic Access ID.
  5. Use the Select button to define the path in Key Storage for the Access Key.
  6. 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:

  7. 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 (opens new window).
  8. [Optionally] Add a name for the Step Label.
  9. Click Save for the Job step.

# Execute a Saved Query in Sumo Logic

  1. Perform steps 1 and 2 above to search for the Sumo Logic Job step plugins.
  2. Select Sumo Logic / Execute a Saved Search Query
  3. In the Credentials section, paste in the Sumo Logic Access ID.
  4. 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:

  5. [Optionally] Add a name for the Step Label.
  6. Click Save for the Job step.