# How to identify if filebeat has read all the logs from a specific folder?

**URL:** <https://discuss.elastic.co/t/how-to-identify-if-filebeat-has-read-all-the-logs-from-a-specific-folder/279857>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 28, 2021, 12:50pm UTC](https://discuss.elastic.co/t/how-to-identify-if-filebeat-has-read-all-the-logs-from-a-specific-folder/279857 "2021-07-28T12:50:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Animesh\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/animesh_agarwal/32/80330_2.png) [@Animesh\_Agarwal](https://discuss.elastic.co/u/Animesh_Agarwal)\
**Post date:** [July 28, 2021, 12:50pm UTC](https://discuss.elastic.co/t/how-to-identify-if-filebeat-has-read-all-the-logs-from-a-specific-folder/279857/1 "2021-07-28T12:50:12Z")

</div>

Hi Team,

Is there a way to identify if filebeat has parsed all the logs from a specific folder ?  
Requirement is to delete the folder automatically once filebeat has synced all the logs from that folder

---

<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:** [July 28, 2021, 4:07pm UTC](https://discuss.elastic.co/t/how-to-identify-if-filebeat-has-read-all-the-logs-from-a-specific-folder/279857/2 "2021-07-28T16:07:19Z")

</div>

You should move this to the filebeat forum since it is a question about filebeat, not logstash.

---

<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:** [August 25, 2021, 4:08pm UTC](https://discuss.elastic.co/t/how-to-identify-if-filebeat-has-read-all-the-logs-from-a-specific-folder/279857/3 "2021-08-25T16:08:19Z")

</div>

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