# LogstashLogrotate conflict

**URL:** <https://discuss.elastic.co/t/logstashlogrotate-conflict/70354>\
**Category:** Logstash\
**Created:** [January 2, 2017, 10:58am UTC](https://discuss.elastic.co/t/logstashlogrotate-conflict/70354 "2017-01-02T10:58:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yarden\_Bar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yarden_bar/32/736_2.png) [@Yarden\_Bar](https://discuss.elastic.co/u/Yarden_Bar)\
**Post date:** [January 2, 2017, 10:58am UTC](https://discuss.elastic.co/t/logstashlogrotate-conflict/70354/1 "2017-01-02T10:58:55Z")

</div>

Hi all,  
I'm encountering a conflict between Logstash and logrotate rules where the later tried to rotate Logstash's logs (/var/log/logstash/logstash-plain\*).

Logstash itself has Log4j2 configuration that rotates the files but the deb package installs a logrotate rule as well:  
dpkg-query -L logstash |grep logrotate  
/etc/logrotate.d/logstash

Is this a bug or a feature?

---

<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:** [January 30, 2017, 10:59am UTC](https://discuss.elastic.co/t/logstashlogrotate-conflict/70354/2 "2017-01-30T10:59:23Z")

</div>

Closed on January 30, 2017, 10:59am UTC

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