# Filebeat fails to pickup other files

**URL:** <https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 27, 2016, 9:59pm UTC](https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202 "2016-05-27T21:59:03Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [June 16, 2016, 10:31am UTC](https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202/21 "2016-06-16T10:31:17Z")

</div>

Registry cleanup is not implemented it. We are still discussion the options. Follow this issue for more details: [https://github.com/elastic/beats/issues/1600](https://github.com/elastic/beats/issues/1600)

About the files like `/flow_base_dir/dump/flows-201606150045.dump`. So not change happened to these files? Because the above means, that `offset > file.Size()` so it assumes the file was truncated.

There are some minor changes in alpha4 related to the offset, but should not be related to the above issues. But worth a try 🙂

---

<div class="post-metadata">

**Author:** ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)\
**Post date:** [June 16, 2016, 7:07pm UTC](https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202/22 "2016-06-16T19:07:28Z")

</div>

What I ended up doing is to update the bash script that generates these dump files, to rotate them between 12 files with 5 min increments. So then I don't have to worry about disk cleanup. In this case, I do see the file truncate in the logs, but this time it's for overwriting the file. So I think from that perspective it's good.

Every ten minutes I will see this in the logs, is this normal?

2016-06-16T15:00:17Z WARN client/metadata fetching metadata for all topics from broker broker-2.service.consul:7000  
2016-06-16T15:00:17Z WARN client/metadata fetching metadata for all topics from broker broker-0.service..consul:7000

---

<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:** [June 17, 2016, 10:03am UTC](https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202/23 "2016-06-17T10:03:56Z")

</div>

Good to hear you found a solution. I hope to fix this in the long term from the filebeat side.

About the warning message: This seems to come from the Kafka library (sarama) we use. TBH it sounds reasonable to me, not sure why it goes into WARN. @steffens knows perhaps more.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [June 17, 2016, 1:14pm UTC](https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202/24 "2016-06-17T13:14:55Z")

</div>

sarama lib only provides log.Println (used for INFO and ERROR messages). WARN level is used as 'compromise'. The message about fetching metadata is very normal.

---

<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 5, 2017, 9:51pm UTC](https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202/25 "2017-07-05T21:51:09Z")

</div>

Closed on July 5, 2017, 9:51pm UTC



[Previous page](https://discuss.elastic.co/t/filebeat-fails-to-pickup-other-files/51202.md?page=1)
