GitLab Data Ingestion

Coralogix allows you to monitor who, when and what was accessed and modified on your GitLab repo. Using Coralogix alerts and visualizations you can get insights into the status of repo’s, and branches, and into activities like commits and pulls. Consolidating all logs into Coralogix allows you to view application and infrastructure logs in the context of GitLab’s when doing root-cause or impact analysis.     

Using webhooks you can easily connect to your GitLab account. The steps below are going to walk you through how to do so.

Generate your token

  1. Open in Coralogix: Settings -> Context Data Plugins
  2. Click on the GitLab tab.
  3. Click on the “+ADD NEW KEY”  button.
  4. Enter integration name in the pop-up window (it can be any name).
  5. The token will show up on the list.

Create GitLab webhook

  1. Log in to your GitLab account.
  2. If you do not have a project, you want to create it. If you have already done that, please move to the next step.
  3. On the left  top corner click on your projects and select your project.

 

Select a project from your projects or click on “New project” to create a new project.

If you click on one of the existing projects you already have, a new screen will open. In this screen you want to select settings and select webhooks.

Complete the form based on the tables below and select the event you want to trigger the collection for.

 EUINUSA
Cluster URLcoralogix.comapp.coralogix.incoralogix.us
Team URL.coralogix.com.app.coralogix.in.app.coralogix.us

Payload URL

Application Type

Secret

https://integrations.cluster URL/v1/gitlab/v1/events/<token>

application/json

This is the same as the token in the payload URL

 

If you like to specify the application name and subsystem name  you can add  them right after the token in the payload URL like below example.

https://integrations.coralogix.com/v1/gitlab/v1/events/11111111-1111-1111-1111-111111111111?appName=MyApp&subSystem=MySubsystem

Make sure the URL end point corresponds with the top level domain of your account URL (.com, .in, .us). See table above.

 

 

Once you finish the configuration you want click on add webhook.

You can also test your configuration and web-hook by clicking on test. If you get anything else beside 200 OK you might want to check the configuration.