# Log entries gets truncated on file rotation

**URL:** <https://discuss.elastic.co/t/log-entries-gets-truncated-on-file-rotation/66725>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 21, 2016, 1:42pm UTC](https://discuss.elastic.co/t/log-entries-gets-truncated-on-file-rotation/66725 "2016-11-21T13:42:35Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 22, 2016, 2:44pm UTC](https://discuss.elastic.co/t/log-entries-gets-truncated-on-file-rotation/66725/8 "2016-11-22T14:44:26Z")

</div>

Is it RollingFileAppender day? [Filebeat locks file when logstash is not runnig](https://discuss.elastic.co/t/filebeat-locks-file-when-logstash-is-not-runnig/66719/7?u=ruflin) 🙂

That means application.log (old) and application.log (new) don't have the same inode? And also the file copied over to application.log.timestamp has a different inode? I think we are getting closer 😉

---

_[View the full topic](https://discuss.elastic.co/t/log-entries-gets-truncated-on-file-rotation/66725)._
