# Remove the older syslog from the logstash shipper

**URL:** <https://discuss.elastic.co/t/remove-the-older-syslog-from-the-logstash-shipper/59558>\
**Category:** Logstash\
**Created:** [September 1, 2016, 1:50pm UTC](https://discuss.elastic.co/t/remove-the-older-syslog-from-the-logstash-shipper/59558 "2016-09-01T13:50:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANU\_SARA\_VARGHESE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anu_sara_varghese/32/51487_2.png) [@ANU\_SARA\_VARGHESE](https://discuss.elastic.co/u/ANU_SARA_VARGHESE)\
**Post date:** [September 1, 2016, 1:50pm UTC](https://discuss.elastic.co/t/remove-the-older-syslog-from-the-logstash-shipper/59558/1 "2016-09-01T13:50:36Z")

</div>

Hi,

How could I remove the older syslog from the Logstash Shipper after I have send it to my redis server?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 1, 2016, 4:41pm UTC](https://discuss.elastic.co/t/remove-the-older-syslog-from-the-logstash-shipper/59558/2 "2016-09-01T16:41:27Z")

</div>

One usually uses logrotate or a similar tool to rotate log files and only keep a limited number of log files.

---

<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:** [July 6, 2017, 4:40am UTC](https://discuss.elastic.co/t/remove-the-older-syslog-from-the-logstash-shipper/59558/3 "2017-07-06T04:40:24Z")

</div>

Closed on July 6, 2017, 4:40am UTC


