Start Building for Free
CircleCI.comAcademyBlogCommunitySupport

Sumo Logic integration

8 months ago2 min read
Cloud
Server v4.x
Server v3.x
On This Page

Overview

The Sumo Logic CircleCI integration allows you to visualize and analyze data about your CircleCI jobs within Sumo Logic.

Integration

The CircleCI app for Sumo Logic provides advanced views to track the performance and health of your continuous integration and deployment pipelines.

The CircleCI dashboard for Sumo Logic

Use this dashboard to:

  • Monitor real-time CI performance, activity, and health, or track over time.

  • Identify opportunities for optimization.

Sumo Logic CircleCI dashboard

Gain insights into your pipelines with the included dashboard panels. Filter each panel for specific projects or jobs, over any period of time. Available dashboard panels include:

  • Total Jobs Ran

  • Job Health (% success)

  • Summary

  • Jobs Ran Per Project

  • Daily Performance

  • Jobs Per Day

  • 5 Most Recent Failed Jobs

  • 5 Most Recent Failed Workflows

  • Top 10 Longest Workflows (Averaged)

  • Top 10 Longest Running Jobs

  • Average Job Runtime Per Day

Install the CircleCI dashboard by using the App Catalog from the dashboard home page.

Sumo Logic App catalogue

Set up Sumo Logic metrics using CircleCI webhooks

To begin collecting and visualizing data with Sumo Logic, first configure CircleCI webhooks to send metrics data to Sumo Logic.

Configure Webhooks

1. Configure hosted collector

Follow the Sumo Logic documentation for Configuring a Hosted Collector.

2. Add an HTTP Source

To get the URL where the CircleCI webhooks will be sent and recorded to the collector, add an HTTP Source.

When complete, copy the generated “HTTP Source Address”. You can always get this link from Sumo Logic again in the future. This is the URL that will need to be entered in the Webhooks section of the CircleCI web app in the next step.

3. Configure Project Webhooks

Complete the following steps to set up a CircleCI webhook to forward your logs to Sumo Logic.

  1. Log in to the CircleCI web app

  2. Access one of your CircleCI projects

  3. Open Project settings

  4. In the project settings sidebar, click Webhooks

  5. Click Add webhook

  6. Complete the following fields:

    • Webhook name: Sumo Logic CI Visibility or any other identifier name that you want to provide.

    • Receiver URL: Use the HTTP Source Address you copied in the last section

    • Events: Select Workflow Completed and Job Completed.

    • Enable the check: Certificate verifications.

  7. Click Add Webhook to save the new webhook.

Install the CircleCI App for Sumo Logic

Now that you have set up collection, install the Sumo Logic App for CircleCI to use pre-configured searches and dashboards that provide insight into your CI/CD pipeline.

  1. Locate and install the CircleCI app from the App Catalog. If you want to see a preview of the dashboards included with the app before installing, click Preview Dashboards.

  2. Select the version of the service you are using and click Add to Library. Version selection is applicable only to a few apps currently. For more information, see the [Install the Apps from the Library]( https://help.sumologic.com/05Search/Library/Apps-in-Sumo-Logic/Install-Apps-from-the-Library) document.

  3. To install the app, complete the following fields:

    • App Name. You can retain the existing name, or enter a name of your choice for the app

    • Data Source. Select either of these options for the data source:

      • Choose Source Category, and select a source category from the list

      • Choose Enter a Custom Data Filter, and enter a custom source category beginning with an underscore. Example: (_sourceCategory=MyCategory).

    • Advanced. Select the location in the library (the default is the personal folder in the library), or click New Folder to add a new folder

  4. Click Add to Library

Once the app is installed, it will appear in your personal folder, or wherever you set to be the default in your library. From here, you can share it with your organization. Panels will start to fill automatically.


Help make this document better

This guide, as well as the rest of our docs, are open source and available on GitHub. We welcome your contributions.

Need support?

Our support engineers are available to help with service issues, billing, or account related questions, and can help troubleshoot build configurations. Contact our support engineers by opening a ticket.

You can also visit our support site to find support articles, community forums, and training resources.