Skip to main content

Stripe

Thumbnail icon

The Stripe app for Sumo Logic enables you to seamlessly monitor financial transactions, customer interactions, and subscription management. This app is based on Split Webhook, which provides seamless integration between Split and Sumo Logic. With this app, you can make data-driven decisions, improve financial efficiency, and enhance customer experiences, ensuring your business stays competitive and responsive in today's fast-paced market.

Stripe is a popular online payment processing platform that enables businesses to accept and manage payments securely through customizable APIs and tools, simplifying e-commerce transactions and subscription services. You can use a webhook in the Stripe platform to forward payment-related events to the Sumo Logic HTTP endpoint. Using these logs, you can monitor payment activities, subscription changes, successful charges, and refunds in Sumo Logic. For more details, refer to the Stripe Documentation.

Event types​

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

Sample log messages​

{
"id": "evt_1NpohqSHj4k9zAUGpMymKz8K",
"object": "event",
"api_version": "2022-11-15",
"created": 1698050901,
"data": {
"object": {
"id": "zhmnGDMH",
"object": "coupon",
"amount_off": null,
"created": 1698050901,
"currency": null,
"duration": "forever",
"duration_in_months": null,
"livemode": true,
"max_redemptions": null,
"metadata": {},
"name": "coupon3",
"percent_off": 67,
"redeem_by": null,
"times_redeemed": 0,
"valid": false
}
},
"livemode": true,
"pending_webhooks": 1,
"request": {
"id": "req_J0Q2AnR8Z1Fq7R",
"idempotency_key": null
},
"type": "coupon.deleted"
}

Sample queries​

_sourcecategory=webhook/stripe object
| json "type", "data.object.object" as type, object nodrop
| where type matches "{{type}}" and object matches "{{object}}"
| count by object
| sort by _count, object asc

Setup​

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

Source configuration​

Follow the below steps to configure the Hosted Collector to receive Stripe 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/stripe - for the Stripe 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 Stripe to send events to the Sumo Logic HTTP source. Once configured, it will be triggered each time the events occur within your Stripe account.

Follow the below steps to configure the Stripe webhook.

  1. Sign in to the Stripe account.
  2. Go to Developers section, click Webhooks.
  3. Select Add endpoint. The webhook form will appear.
  4. Enter webhook form data as follows:
    • Endpoint URL. Enter the Sumo Logic HTTP endpoint URL(source address) created above.
    • Description. Enter an optional description for the given webhook.
    • Listen to. Select an option for account from Events on your account and Events on Connected accounts.
    • Select events. Select events to listen for webhook.
  5. Click Add endpoint.
  6. Verify Stripe events are getting ingested in Sumo Logic by executing the following query on Sumo Logic's Log Search panel.
_sourceCategory=webhook/stripe
info

Installing the Stripe app​

To install the app, do the following:

  1. Select App Catalog.
  2. In the 🔎 Search Apps field, run a search for your desired app, then select it.
  3. Click Install App.
    note

    Sometimes this button says Add Integration.

  4. Click Next in the Setup Data section.
  5. In the Configure section of your 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.

Post-installation

Once your app is installed, it will appear in your 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, but will update with full graphs and charts over time.

Viewing Stripe 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 Filtering Dashboards 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 Stripe - Overview enhances transparency into activities within the Stripe platform by classifying them based on event type and object. It offers valuable insights and statistics on events related to Payment Intents, Plans, Promotional Codes, and Billing Portal Configuration.

Stripe-Overview

Products​

The Stripe - Products provides valuable insights and statistics concerning events related to products, encompassing tax rates and coupons.

Stripe-Products

Customers and Billing​

The Stripe - Customers and Billing offers valuable insights and statistical data about customer and billing-related events including subscriptions and invoices.

Stripe-Customers_and_Billing

Upgrade/Downgrade the Stripe app (Optional)​

To update 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 identify apps that can be upgraded in the Upgrade available section.
  3. To upgrade the app, select Upgrade from the Manage dropdown.
    1. If the upgrade does not have any configuration or property changes, you will be redirected to the Preview & Done section.
    2. If the upgrade has any configuration or property changes, you will be redirected to Setup Data page.
      1. In the Configure section of your 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.

Post-update

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

note

See our Release Notes changelog for new updates in the app.

To revert the app to a previous version, do the following:

  1. Select App Catalog.
  2. In the Search Apps field, search for and then select your app.
  3. To version down the app, select Revert to < previous version of your app > from the Manage dropdown.

Uninstalling the Stripe app (Optional)​

To uninstall the app, do the following:

  1. Select App Catalog.
  2. In the 🔎 Search Apps field, run a search for your desired app, then select it.
  3. Click Uninstall.
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.