0
0
Jenkinsdevops~5 mins

Log management and rotation in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is log rotation in Jenkins?
Log rotation in Jenkins means automatically deleting or archiving old build logs to save disk space and keep the system clean.
Click to reveal answer
beginner
How can you configure log rotation for a Jenkins job?
In the job configuration, under 'Discard Old Builds' or 'Build Discarder', you can set how many builds or days to keep logs before Jenkins deletes them.
Click to reveal answer
beginner
Why is log management important in Jenkins?
It prevents the server from running out of disk space and helps keep Jenkins fast and reliable by removing old unnecessary logs.
Click to reveal answer
intermediate
What Jenkins plugin can help with advanced log management?
The 'Log Parser Plugin' helps analyze and manage logs by highlighting errors and warnings in build logs.
Click to reveal answer
beginner
How does Jenkins decide which logs to delete during rotation?
Jenkins deletes logs based on the rules set in the job's 'Discard Old Builds' settings, like max number of builds or max days to keep.
Click to reveal answer
Where do you configure log rotation settings in a Jenkins job?
AUnder 'Build Discarder' in job configuration
BIn Jenkins global security settings
CIn the Jenkins system logs page
DIn the Jenkins user profile
What is the main benefit of log rotation in Jenkins?
ABacking up logs to cloud storage
BIncreasing build speed by caching logs
CImproving network security
DSaving disk space by removing old logs
Which plugin helps highlight errors in Jenkins build logs?
ACredentials Plugin
BLog Parser Plugin
CPipeline Plugin
DGit Plugin
If you want to keep only the last 10 builds' logs, where do you set this?
AIn the Jenkins system log file
BIn Jenkins global configuration
CIn 'Discard Old Builds' settings of the job
DIn the Jenkins user preferences
What happens if you do not configure log rotation in Jenkins?
AOld logs accumulate and may fill disk space
BJenkins deletes logs automatically after 7 days
CBuilds will fail due to missing logs
DLogs are sent to an external server
Explain how to set up log rotation for a Jenkins job and why it is important.
Think about cleaning old files to save space.
You got /5 concepts.
    Describe the role of the Log Parser Plugin in Jenkins log management.
    It’s like a highlighter for your logs.
    You got /4 concepts.