# Logrotate , Logstash Syncing

**URL:** <https://discuss.elastic.co/t/logrotate-logstash-syncing/172661>\
**Category:** Logstash\
**Created:** [March 17, 2019, 8:41am UTC](https://discuss.elastic.co/t/logrotate-logstash-syncing/172661 "2019-03-17T08:41:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiteshKhanna](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@GiteshKhanna](https://discuss.elastic.co/u/GiteshKhanna)\
**Post date:** [March 17, 2019, 8:41am UTC](https://discuss.elastic.co/t/logrotate-logstash-syncing/172661/1 "2019-03-17T08:41:10Z")

</div>

I am trying to configure logstash to support logrotate.

I am only giving the **path** of the log file being truncated after each logrotate.  
So whenever a new file is generated after copying(by logrotate), I am assuming logstash will figure out about the new file and start processing it aswell, from the file offset it left from in the main file.

Am I correct?  
Is there something I am missing here?

---

<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:** [April 14, 2019, 8:41am UTC](https://discuss.elastic.co/t/logrotate-logstash-syncing/172661/2 "2019-04-14T08:41:11Z")

</div>

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