Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Jenkins Log File Usage

Jenkins has the cool perk of logging almost everything that happens during your build process. Right now everything is logged in /var/log/jenkins/jenkins.log.

After regular periods, this file grow to more than 400 GB in space.

Is there any way to disable this "feature"? As the system the system is used company internally, I would'nt mind, disabling logging at all.

Thanks for your help!

like image 384
Matthias Brock Avatar asked Jan 27 '16 10:01

Matthias Brock


People also ask

How do I clear Jenkins logs?

Go to your Jenkins home page -> Manage Jenkins -> Script Console. Run this script to clean and reset. Copy and paste this script to your Console Script text area and change the "copy_folder" to the project name that you need to clean the history. Then click the Run button.

Where are Jenkins log files stored?

Linux and macOS - Jenkins logs are stored along with other log files in the /var/log directory. Windows - Jenkins log files are stored in the Jenkins home folder, which is determined during installation.

How do I change the log level in Jenkins?

You can set the logging level of the Loggers under Manage Jenkins System Logs Log Levels. Simply copy/paste the logger or package you want to adjust the level for, select the logging Level and click on Submit. For example, the following matches the same configuration as in Solution 1.


1 Answers

Jenkins logging is highly configurable, so you can turn off logging for packages that you;re not interested in. The configuration is done at:

$JENKINS_URL/log/

documentation is at https://wiki.jenkins-ci.org/display/JENKINS/Logging

like image 81
gareth_bowles Avatar answered Oct 14 '22 08:10

gareth_bowles