Introduction
Jenkins creates log files to record what happens during builds and system operations. Over time, these logs can grow large and use up disk space. Log management and rotation help keep logs organized and prevent disk space from filling up by automatically archiving or deleting old logs.
When Jenkins server disk space is running low due to large log files
When you want to keep only recent build logs and remove older ones automatically
When you need to archive logs for a certain period for auditing but not keep them forever
When you want to improve Jenkins performance by limiting log file size
When you want to avoid manual cleanup of Jenkins logs