INTEGRATIONS

Jenkins plugin

This Coralogix Jenkins plugin adds support for sending job’s console logs & stats and push tags to Coralogix.

Installation

  • Download the hpi file from GitHub releases
  • Put the hpi file in the directory
    $JENKINS_HOME/plugins
  • Restart Jenkins

Configuration

Go to Manage Jenkins, open Configure system, find the Coralogix section and configure your account private key for sending system/audit/security logs:

Also, if you use different Coralogix endpoint, you can overwrite it as Coralogix API endpoint under the Advanced... section.

Credentials

Before usage you need to create Jenkins credentials with Coralogix private key for your team:

Usage

This plugin supports sending build logs and tags pushing both for Freestyle project and Pipelines.

Send logs

Send your build logs to Coralogix.

Freestyle project
Just check the Send build logs to Coralogix, select Private Key and provide Application name:

Pipeline

This is the Groovy implementation:

pipeline {
    agent any
    stages {
        stage('Test') {
            steps {
                echo "Hello world!"
            }
        }
    }
    post {
        always {
            coralogixSend privateKeyCredentialId: 'coralogix-production',
                          application: 'MyApp',
                          subsystem: "${env.JOB_NAME}",
                          splitLogs: true
        }
    }
}

Push tag

Push version tag to Coralogix.

Freestyle project
Add build step Push Coralogix tag and configure:

  • Private Key – your Coralogix account private key
  • Tag name – version tag name
  • Application name – your application name
  • Subsystem names – your subsystem names
  • Icon(optional) – your own tag picture
  • Coralogix Tag

Pipeline

This is the Groovy representation of Push Coralogix tag build step:

pipeline {
    agent any
    stages {
        stage('Test') {
            steps {
                echo "Hello world!"
            }
        }
    }
    post {
        success {
            coralogixTag privateKeyCredentialId: 'coralogix-production',
                         tag: '1.0.0',
                         application: 'MyApp',
                         subsystems: [
                            [name: 'staging'],
                            [name: 'production']
                         ],
                         icon: ''
        }
    }
}

License

The Coralogix Plugin is licensed under the MIT License.

Start solving your production issues faster

Let's talk about how Coralogix can help you better understand your logs

Managed, Scaled and Compliant ELK Stack

No credit card required

Get a personalized demo

Jump on a call with one of our experts and get a live personalized demonstration