<p>I'm pretty sure this <a href="https://www.jenkins.io/doc/book/managing/system-properties/#hudson-util-ringbufferloghandler-defaultsize" rel="nofollow noreferrer">Jenkins system property</a> will do the trick:</p>
<blockquote>
<pre><code>hudson.util.RingBufferLogHandler.defaultSize
</code></pre>
<p>tuning</p>
<p>Since: 1.563</p>
<p>Default:  256</p>
<p><strong>Description:</strong> Number of log entries in loggers available on the UI at /log/</p>
</blockquote>
<p>You can also custom <a href="https://support.cloudbees.com/hc/en-us/articles/115002626172-Configure-Loggers-for-Jenkins" rel="nofollow noreferrer">Configure Loggers for Jenkins</a> or <a href="https://support.cloudbees.com/hc/en-us/articles/204880580-How-do-I-create-a-logger-in-Jenkins-for-troubleshooting-and-diagnostic-information-" rel="nofollow noreferrer">create a logger in Jenkins for troubleshooting and diagnostic information</a> that capture specifics you are looking for.</p>
<p>Additional references:<br>
<a href="https://wiki.jenkins.io/display/JENKINS/Logging" rel="nofollow noreferrer">JENKINS - Logging</a><br>
<a href="https://wiki.jenkins.io/display/JENKINS/Logger+Configuration" rel="nofollow noreferrer">JENKINS - Logger Configuration</a></p>
<p>Or, if you are the admin, you should be able simply to scan the logs on the filesystem. Review what log rotation options and retention you may have.</p>

CC BY-SA 4.0
2022-07-24T22:55:01.133Z
If you're using Helm: `controller: javaOpts: - "-Dhudson.util.RingBufferLogHandler.defaultSize=4096"
jws
CC BY-SA 4.0
2020-10-10T07:09:34.933Z
2020-10-10T07:35:23.503Z
2020-10-10T07:35:23.503Z
Ian W
<p>I use Jenkins log recorders as described in docs:
<a href="https://www.jenkins.io/doc/book/system-administration/viewing-logs/" rel="nofollow noreferrer">https://www.jenkins.io/doc/book/system-administration/viewing-logs/</a><br />
It works, but log is only about 255 lines long, which is too short for my processing.<br />
Newest lines are shown, I cant reach older logs, so I dont know what happened in the beginning.<br />
How do I increase this size? I would like to keep at least 1MB of data.</p>

<jenkins><logging>
How to increase jenkins logger size?
michalreon
# How to increase jenkins logger size?

(Asked by: username_0 on 2020-10-07)

I use Jenkins log recorders as described in docs:
<https://www.jenkins.io/doc/book/system-administration/viewing-logs/>  
It works, but log is only about 255 lines long, which is too short for my processing.  
Newest lines are shown, I cant reach older logs, so I dont know what happened in the beginning.  
How do I increase this size? I would like to keep at least 1MB of data.

**Tags:** jenkins, logging


---

## 1 answers

### Answer by username_1 on 2020-10-10. Score: 3 | Accepted answer

I'm pretty sure this Jenkins system property will do the trick:

hudson.util.RingBufferLogHandler.defaultSize

tuning
Since: 1.563
Default:  256
Description: Number of log entries in loggers available on the UI at /log/

You can also custom Configure Loggers for Jenkins or create a logger in Jenkins for troubleshooting and diagnostic information that capture specifics you are looking for.
Additional references:
JENKINS - Logging
JENKINS - Logger Configuration
Or, if you are the admin, you should be able simply to scan the logs on the filesystem. Review what log rotation options and retention you may have.

> **Comments:**
> **username_2**: If you're using Helm: `controller: javaOpts: - "-Dhudson.util.RingBufferLogHandler.defaultSize=4096"  

---

