How to stop Jenkins log from becoming huge?

后端 未结 6 366
花落未央
花落未央 2020-12-07 17:47

Recently my jenkins.log has started getting very large, very quickly, full of exceptions about DNS resolution. I attempted to use logrotate, but the log file grows too quick

6条回答
  •  悲哀的现实
    2020-12-07 18:22

    You can disable the logging of these DNS errors by adjusting the logging settings within Jenkins.

    From the Jenkins web interface go to:

     Manage Jenkins -> System Log -> Log Levels (on the left)
    

    Add the following entry:

    Name: javax.jmdns
    
    Level: off
    

    This way you can keep the Multicast DNS feature but without all the logging data.

提交回复
热议问题