# Deleting logstash logs older than 4 days

**URL:** <https://discuss.elastic.co/t/deleting-logstash-logs-older-than-4-days/174341>\
**Category:** Logstash\
**Created:** [March 28, 2019, 1:23pm UTC](https://discuss.elastic.co/t/deleting-logstash-logs-older-than-4-days/174341 "2019-03-28T13:23:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BennyInc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bennyinc/32/21751_2.png) [@BennyInc](https://discuss.elastic.co/u/BennyInc)\
**Post date:** [March 28, 2019, 1:46pm UTC](https://discuss.elastic.co/t/deleting-logstash-logs-older-than-4-days/174341/2 "2019-03-28T13:46:31Z")

</div>

I'm using a simple crontab entry that takes care of this in my setup: [Logrotate](https://discuss.elastic.co/t/logrotate/173643/5)

---

_[View the full topic](https://discuss.elastic.co/t/deleting-logstash-logs-older-than-4-days/174341)._
