# Increase amount of debug logs

**URL:** <https://discuss.elastic.co/t/increase-amount-of-debug-logs/233766>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [May 21, 2020, 3:28pm UTC](https://discuss.elastic.co/t/increase-amount-of-debug-logs/233766 "2020-05-21T15:28:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerodynamic](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@aerodynamic](https://discuss.elastic.co/u/aerodynamic)\
**Post date:** [May 21, 2020, 3:28pm UTC](https://discuss.elastic.co/t/increase-amount-of-debug-logs/233766/1 "2020-05-21T15:28:37Z")

</div>

Hello,

I've set my logstast.yml's log.level to debug. However there are only 9 log files actually being produced  
missing-files/log-6/logstash-slowlog-plain.log  
missing-files/log-6/logstash-plain-2020-05-21-1.log.gz  
missing-files/log-6/logstash-plain-2020-05-21-2.log.gz  
missing-files/log-6/logstash-plain-2020-05-21-3.log.gz  
missing-files/log-6/logstash-plain-2020-05-21-4.log.gz  
missing-files/log-6/logstash-plain-2020-05-21-5.log.gz  
missing-files/log-6/logstash-plain-2020-05-21-6.log.gz  
missing-files/log-6/logstash-plain.log  
missing-files/log-6/logstash-plain-2020-05-21-7.log.gz

How can I increase the amount of debug logs that are retained?

---

<div class="post-metadata">

**Author:** ![steevhise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steevhise/32/41458_2.png) [@steevhise](https://discuss.elastic.co/u/steevhise)\
**Post date:** [May 21, 2020, 5:40pm UTC](https://discuss.elastic.co/t/increase-amount-of-debug-logs/233766/2 "2020-05-21T17:40:41Z")

</div>

the renaming and compressing and purging of logs is usually handled by logrotate, not by the software doing the logging. you might want to check your machine's logrotate configuration, in `/etc/logrotate/` (if you're on some flavor of unix).

---

<div class="post-metadata">

**Author:** ![aerodynamic](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@aerodynamic](https://discuss.elastic.co/u/aerodynamic)\
**Post date:** [May 21, 2020, 5:55pm UTC](https://discuss.elastic.co/t/increase-amount-of-debug-logs/233766/3 "2020-05-21T17:55:41Z")

</div>

I'm using RHEL. Yes! Will fix that. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 18, 2020, 5:55pm UTC](https://discuss.elastic.co/t/increase-amount-of-debug-logs/233766/4 "2020-06-18T17:55:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
