Skip to navigation

Integrate Postman with Splunk

View as Markdown

Splunk is a monitoring service for cloud-scale applications. It combines data from servers, databases, tools, and services to present a unified view of an entire stack. This integration enables you to configure your Postman Monitors to send metrics to Splunk where you can visualize and compare them with other metrics.

To set up a Splunk integration, you must get an HTTP Event Collector (HEC) token from Splunk and configure your monitors. After you set up the integration, you can view real-time alerts based on the results of your monitors.

Retrieving your Splunk HEC token

  1. Sign in to your Splunk account.
  2. Follow Splunk’s instructions to create an HEC token.
  3. Save the HEC token to use later.

Configuring Postman Splunk integration

  1. From the Postman Home page, click Integrations.

  2. Search for and select Splunk.

  3. Click Add Integration.

  4. Enter the following in the Add Integration window:

    • Nickname - A nickname for your integration.
    • Choose workspace - The workspace that has your monitor.
    • Choose monitor - The monitor which will send its results to Splunk.
    • Splunk HEC token - Enter the Splunk HEC token.
    • Splunk HEC URL - Enter the Splunk URL that hosts the HEC token in the format <protocol>://<host> (for example, https://192.0.2.255). The URL must use https and can’t end with a trailing slash (/). To learn more, see Splunk’s documentation.
    • Splunk port - Enter the Splunk port number.
  5. Click Add Integration to save the configuration.

You can view your configured integrations on the Integrations page. Configured integrations have a green dot in the upper right corner of the tile.

Connecting Splunk from a monitor

You can also connect Splunk when you create a monitor or edit an existing one. You don’t need to choose a workspace or monitor, because the integration is for that monitor.

To connect Splunk from a monitor, do the following:

  1. Open the monitor’s create or edit page.

  2. Click Send updates to. Under Observability, click Splunk.

  3. In the Connect Splunk dialog, enter the following:

    • Integration name - A name for the integration. By default, the name is the monitor’s name followed by ”- Splunk Integration”.
    • Splunk HEC token - Enter the Splunk HEC token.
    • Splunk HEC URL - Enter the Splunk URL that hosts the HEC token, for example, https://http-inputs-acme.splunkcloud.com. The URL must use https and can’t end with a trailing slash (/).
    • Splunk port - Enter the Splunk port number.
  4. Click Connect.

Viewing data in Splunk

When your monitor runs, the data starts flowing into Splunk.

Viewing data in a list

  1. Sign in to your Splunk account, and open the homepage.

  2. From the navigation menu, click Apps > Search & Reporting. Then click the Search tab.

  3. Click the Events tab, and enter a metric to search for.

  4. Select a metric from the results to view details about it.

To learn more about viewing data in Splunk, see Splunk’s documentation.

Splunk metrics search

Splunk metric details

Viewing data as a Pivot table

  1. Sign in to your Splunk account, and open the homepage.

  2. From the navigation menu, click Apps > Search & Reporting. Then click the Search tab.

  3. Click the Visualization tab, and enter a metric to search for.

  4. Click Pivot.

  5. Select the metrics and filters you need to visualize on the table.

To learn more about viewing data in Splunk, see Splunk’s documentation.

Splunk pivot table

Once the data is present in Splunk, you can filter it based on the monitor name/UID, collection name/UID, user name/ID, and environment name/UID (if present).