# Filebeat doesn't read file after rotation

**URL:** https://discuss.elastic.co/t/filebeat-doesnt-read-file-after-rotation/177116
**Category:** Beats
**Tags:** filebeat
**Created:** [April 16, 2019, 3:44pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-read-file-after-rotation/177116 "2019-04-16T15:44:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jbm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbm/32/43221_2.png) [@jbm](https://discuss.elastic.co/u/jbm)
#### Post date: [April 16, 2019, 3:44pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-read-file-after-rotation/177116/1 "2019-04-16T15:44:59Z")

</div>

I am running Filebeat 7.0.0, and when trying to read a log, the file stops getting read after it rotates.  
The file rotates by copying the contents of "errorlog.log" to "errorlog.1.log" and then emptying "errorlog.log". The file isn't deleted, just emptied, which can be seen as the create date is in 2014, but last modified is today.

When the rotation occurs, Filebeat doesn't detect anything in the newly empty log file, and never updates again. Is there a way to change Filebeat's behavior around detecting a change in a file?

---

<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: [May 14, 2019, 3:48pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-read-file-after-rotation/177116/2 "2019-05-14T15:48:30Z")

</div>

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