Our next-gen architecture is built to help you make sense of your ever-growing data Watch a 4-min demo video!

Back to All Docs

GitLab Data Ingestion GitLab Data Ingestion

Last Updated: Feb. 11, 2023

Use Coralogix alerts and visualizations to gain insights into the status of repositories, branches, and activities such as commits and pulls, as well as to monitor any modifications to your GitLab repo. Consolidating all logs into Coralogix allows you to view application and infrastructure logs in the context of GitLab when doing root-cause or impact analysis.     

The following tutorial demonstrates how to use webhooks to easily connect to your GitLab account.

Generate your token

  1. Open in Coralogix: Data Flow -> Contextual Data
  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.
create gitlab webhook

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.

select webhooks in settings

Complete the form and select the event for which you would like to trigger the collection. Refer to team URL based on the table below.

Cluster URLTeam URL
Payload URLApplication TypeSecret
https://integrations.cluster URL/v1/gitlab/v1/events/<token>application/jsonThis is the same as the token in the payload URL

If you like to specify the application and subsystem name, add them after the token in the payload URL, as follows: https://integrations.<team url>/v1/gitlab/v1/events/<gitlab key token>?appName=<appname>&subSystem=<subsystem name>.
For example, for an EU team use: https://integrations.coralogix.com/v1/gitlab/v1/events/11111111-1111-1111-1111-111111111111?appName=MyApp&subSystem=MySubsystem

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

Input your GitLab key token in the Secret token field.

webhooks configuration

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

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

add webhook test

On this page