# Probem with file imput

**URL:** <https://discuss.elastic.co/t/probem-with-file-imput/281261>\
**Category:** Logstash\
**Created:** [August 12, 2021, 8:16pm UTC](https://discuss.elastic.co/t/probem-with-file-imput/281261 "2021-08-12T20:16:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 12, 2021, 8:46pm UTC](https://discuss.elastic.co/t/probem-with-file-imput/281261/2 "2021-08-12T20:46:29Z")

</div>

This is very likely due to inode reuse. See the posts linked to in [this](https://discuss.elastic.co/t/logstash7-6-data-loss-when-input-file-logrotation-happens/239719/2) thread. There are various workarounds suggested in some of those.

There is no good solution. You could change the completion action from delete to log, then have an external script truncate the files as they are logged.

---

_[View the full topic](https://discuss.elastic.co/t/probem-with-file-imput/281261)._
