Log Analytics 2019 - Coralogix partners with IDC Research to uncover the latest requirements by leading companies

FREE REPORT

INTEGRATIONS

Jenkins plugin

This Coralogix Jenkins plugin adds support for sending a 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 Coralogix section and configure your account private key for sending system/audit/security logs:

Credentials

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

Usage

This plugin provides 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: ''
}
}
}

Start solving your production issues faster

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

No credit card required

Get a personalized demo

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