# Delete / Rename File after Reading

**URL:** <https://discuss.elastic.co/t/delete-rename-file-after-reading/62693>\
**Category:** Logstash\
**Created:** [October 11, 2016, 9:01am UTC](https://discuss.elastic.co/t/delete-rename-file-after-reading/62693 "2016-10-11T09:01:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TWalter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/twalter/32/41239_2.png) [@TWalter](https://discuss.elastic.co/u/TWalter)\
**Post date:** [October 11, 2016, 9:01am UTC](https://discuss.elastic.co/t/delete-rename-file-after-reading/62693/1 "2016-10-11T09:01:47Z")

</div>

Hello there,

is there any possibility where you can rename or delete files, which are finished by reading with Logstash?

Thanks to all.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 11, 2016, 9:07am UTC](https://discuss.elastic.co/t/delete-rename-file-after-reading/62693/2 "2016-10-11T09:07:33Z")

</div>

No, there's no built-in support for this. You'd have to monitor the sincedb files outside of Logstash to determine when a file has been processed to completion and then take action.

---

<div class="post-metadata">

**Author:** ![TWalter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/twalter/32/41239_2.png) [@TWalter](https://discuss.elastic.co/u/TWalter)\
**Post date:** [October 11, 2016, 1:53pm UTC](https://discuss.elastic.co/t/delete-rename-file-after-reading/62693/3 "2016-10-11T13:53:47Z")

</div>

Thank you =)

---

<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:** [July 6, 2017, 4:34am UTC](https://discuss.elastic.co/t/delete-rename-file-after-reading/62693/4 "2017-07-06T04:34:44Z")

</div>


