Skip to main content

Postman

Thumbnail icon

The Postman app for Sumo Logic enables you to monitor API test results, collection changes, monitor alerts, environment modifications, and custom automation workflow triggers effectively. This app is based on Postman Webhook, which provides seamless integration between Postman and Sumo Logic. The app enhances the reliability, performance, and security of APIs while optimizing resource allocation and fostering effective team collaboration.

Postman is an API development tool that streamlines API building, testing, modification, and simplifies the process of working with APIs for developers. You can use a webhook in the Postman platform to forward change events to the Sumo Logic HTTP endpoint. Using these logs, you can monitor API test results, collection changes, monitor alerts, environment modifications, and custom automation workflow triggers in Sumo logic. For more details, refer to the Postman Documentation.

Event types

The Sumo Logic app for Postman ingests Postman events into Sumo Logic through an outgoing webhook available in the Postman. For more information on supported events that are ingested through the Postman webhook, see the Postman Documentation.

Sample log message

{
"collection": {
"info": {
"_postman_id": "4baac7e5-c7dc-4957-8680-9c28awde44",
"name": "Druva",
"schema": "https://random03.ddns.net/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "token",
"id": "725c7d24-be8c-4714-9f24-5e1d3be21577",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "oauth2",
"basic": {
"password": "abcd",
"username": "abcd"
}
},
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "refresh_token",
"value": "assdlkfsdkfsdlksdlksdk",
"type": "default"
},
{
"key": "grant_type",
"value": "refresh_token",
"type": "default"
}
]
},
"url": "https://random03.ddns.net/ccx/oauth2/huron/token"
},
"response": []
}
]
}
}

Sample query

_sourceCategory=webhook/postman "collection" "_postman_id"
| json "collection.info._postman_id", "collection.info.name", "collection.item[*].request.method" as postmanId, name, methodList nodrop
| where postmanId matches "{{postmanId}}" and name matches "{{name}}"
| count_distinct(postmanId)

Setup

This section has instructions for collecting logs for the Sumo Logic Postman webhook collection.

Source configuration

Follow the below steps to configure the Hosted Collector to receive Postman events.

  1. In the Sumo Logic portal, create a new Hosted Collector or use an existing one.
  2. Then add an HTTP Logs and Metrics Source.
  3. Configure Source Category in the HTTP Source - for example, webhook/postman - for the Postman integration.
  4. Expand Advanced Options for Logs (Optional) section in the HTTP Source, then uncheck Multiline Processing option and check One Message Per Request.
  5. Copy and save the endpoint URL of the source.

Vendor configuration

Configure the webhook integration in Postman to send events to the Sumo Logic HTTP source. Once configured, it will be triggered each time the events occur within your Postman account.

Follow the below steps to configure the Postman webhook.

  1. Sign in to your Postman account.
  2. On the home page, click on the Integrations tab from the left sidebar.
  3. Search and select Webhooks from the list of integrations.
  4. The integration page has choices for each type of custom webhook. Select Add Integration next to a webhook type to configure your integration. The webhook form will appear.
  5. Enter webhook form data as follows:
    • Nickname. Enter a Nickname for the integration.
    • Webhook URL. Enter the Sumo Logic HTTP endpoint URL (source address) created above.
    • For Backup a collection as the webhook type,
      • Choose workspace. Select the workspace to which your collection belongs.
      • Choose Collection. Select the collection you wish to send updates for.
    • For Post monitoring results as the webhook type,
      • Choose workspace. Select the workspace to which your collection belongs.
      • Choose Monitor. Select the monitor you wish to send results for.
  6. Click Add Integration.
  7. Verify Postman events are getting ingested in Sumo Logic by executing the following query on Sumo Logic's Log Search panel.
_sourceCategory=webhook/postman
info

Installing the Postman app

To install the app, do the following:

  1. Select App Catalog.
  2. In the Search Apps field, search for and then select your app.
    Optionally, you can scroll down to preview the dashboards included with the app.
  3. To install the app, click Install App.
  4. Click Next in the Setup Data section.
  5. In the Configure section of the respective app, complete the following fields.
    1. Key. Select either of these options for the data source.
      • Choose Source Category, and select a source category from the list for Default Value.
      • Choose Custom, and enter a custom metadata field. Insert its value in Default Value.
  6. Click Next. You will be redirected to the Preview & Done section.

Your app will be installed in the Installed Apps folder and dashboard panels will start to fill automatically.

Each panel slowly fills with data matching the time range query and received since the panel was created. Results will not immediately be available, updating with full graphs and charts over time.

Upgrading the Postman app (Optional)

To update the app, do the following:

  1. From the Sumo Logic navigation, select App Catalog.
  2. In the Search Apps field, search for and then select your app.
    Optionally, you can identify apps that can be upgraded in the Upgrade available section.
  3. To upgrade the app, click Upgrade.
    1. You will be redirected to the Preview & Done section if the upgrade did not have any configuration or property change.
    2. You will be redirected to Setup Data page if the upgrade has any configuration or property change.
      1. In the Configure section of the respective app, complete the following fields.
        • Key. Select either of these options for the data source.
          • Choose Source Category, and select a source category from the list for Default Value.
          • Choose Custom, and enter a custom metadata field. Insert its value in Default Value.
      2. Click Next. You will be redirected to the Preview & Done section.

Your upgraded app will be installed in the Installed Apps folder and dashboard panels will start to fill automatically.

note

Go to the Release Notes tab to see the change log for new updates in the app.

Uninstalling the Postman app (Optional)

To uninstall the app, do the following:

  1. From the Sumo Logic navigation, select App Catalog.
  2. In the Search Apps field, search for and then select your app.
  3. Click Uninstall.

Viewing Postman dashboards

All dashboards have a set of filters that you can apply to the entire dashboard. Use these filters to drill down and examine the data to a granular level.

  • You can change the time range for a dashboard or panel by selecting a predefined interval from a drop-down list, choosing a recently used time range, or specifying custom dates and times. Learn more.
  • You can use template variables to drill down and examine the data on a granular level. For more information, see Filter with template variables.
  • Most Next-Gen apps allow you to provide the scope at the installation time and are comprised of a key (_sourceCategory by default) and a default value for this key. Based on your input, the app dashboards will be parameterized with a dashboard variable, allowing you to change the dataset queried by all panels. This eliminates the need to create multiple copies of the same dashboard with different queries.

Overview

The Postman - Overview provides an overview of valuable insights and statistical data concerning collections, team activity feed events, and API tests.

Postman-Overview

Collections, Requests & Team Activity

The Postman - Collections, Requests & Team Activity provides valuable insights and statistical data concerning collections, including their requests, updates, and team activity feed events.

Postman-Collections,_Requests_&_Team_Activity

Monitors

The Postman - Monitors provides immediate notifications and real-time data regarding the results of API tests.

Postman-Monitors
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.