Logs Collected

The logs collected are pulled directly from the /var/log/jenkins/jenkins.log file on Linux and MacOS. Windows differs in that there are two files for the logs:

  • %JENKINS_HOME%/jenkins.out and %JENKINS_HOME%/jenkins.err

The log files contain all the relevant and useful information related to the Jenkins server. Using the Blue Medora BindPlane Log Agent, the logs can be collected and sent directly to Stackdriver Logging for further use. Below is an example of the Jenkins logs within Stackdriver Logging!

Jenkins Logs ExampleJenkins Logs Example

Jenkins Logs Example

Log Collection Setup

Follow these steps to setup log collection for Jenkins.

Pre-requisites

  • Locate the path to the Jenkins log files

Linux & MacOS Default: /var/log/jenkins/jenkins.log
Windows Default: %JENKINS_HOME%/jenkins.out and %JENKINS_HOME%/jenkins.err

Configure a Jenkins Source

  1. Install the BindPlane Log Agent on the host system.
  2. Login to BindPlane and select the Logs tab.
Logs TabLogs Tab

Logs Tab

  1. Select the Sources tab.
Sources TabSources Tab

Sources Tab

  1. In the top-right portion of the screen, click on the Add Source Configuration button
Add Source Configuration ButtonAdd Source Configuration Button

Add Source Configuration Button

  1. Choose Jenkins
  2. Fill out the Jenkins log configuration options.
Jenkins Log Configuration FormJenkins Log Configuration Form

Jenkins Log Configuration Form