This Coralogix Jenkins plugin adds support for sending console logs & stats and pushes tags to Coralogix. NOTE: The Coralogix plugin will work on Jenkins version 2.277.2 and above, if your Jenkins isn’t in the mentioned versions, you may try our Curl commands located further in the doc.
Put the hpi file in the directory $JENKINS_HOME/plugins
Go to Manage Jenkins, open Configure system, find Coralogix section and configure your account Send-Your-Data API key for sending system/audit/security logs and metrics (take note that Send system log wont be checked since it’s not currently supported):
You can configure as many keys as you want.
An example of a Custom Coralogix Endpoint is private.coralogix.com.
If your Coralogix domain ends with a suffix other than ‘.com’, overwrite the Coralogix API endpoint value by going to the Advanced section and inserting:
Before usage you need to create Jenkins credentials with Coralogix Send-Your-Data API key for your team, navigate to Manage Jenkins > Manage Credentials and click on Jenkins under Stores scoped to Jenkins. You will be welcomed by this table:
Next, create a new credential of kind: Coralogix API key, this keys’ value is taken from: Data flow > API keys copy the “Alerts, Rules and Tags API Key” (the first on the list) and insert it into the field. This will allow us to use the “push tags” function, since it will allow creation of a tag each time there is a build in the pipe.
To push Tags you need to go under your config and click Add build step.
Select Push Tags to Coralogix and select the Tags key from your credentials.
This plugin supports sending build logs and tags pushing both for Freestyle project and Pipelines.
Send your build logs to Coralogix.
Freestyle project Just check the Send build logs to Coralogix, select Private Key, and provide Application name: