# How to read same file multiple times in Filebeat?

**URL:** <https://discuss.elastic.co/t/how-to-read-same-file-multiple-times-in-filebeat/193706>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 5, 2019, 2:53am UTC](https://discuss.elastic.co/t/how-to-read-same-file-multiple-times-in-filebeat/193706 "2019-08-05T02:53:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel6](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@Daniel6](https://discuss.elastic.co/u/Daniel6)\
**Post date:** [August 5, 2019, 2:53am UTC](https://discuss.elastic.co/t/how-to-read-same-file-multiple-times-in-filebeat/193706/1 "2019-08-05T02:53:06Z")

</div>

Hi,  
I run ELK on Linux(CentOS7).  
I know in Logstash we could add `sincedb_path => "/dev/null"` in  
`config/logstash.conf`, so we could read same file again and again.  
How to do this in filebeat?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 5, 2019, 5:45am UTC](https://discuss.elastic.co/t/how-to-read-same-file-multiple-times-in-filebeat/193706/2 "2019-08-05T05:45:35Z")

</div>

The data that keeps track of what files have been loaded is contained in

`./data/registry/filebeat` you can delete the entire data directory ( **do not do in production** ) or go into the`./data/registry/filebeat/data.json` file and remove the entry you are interested in.

There is not a parameter to force reload / re-read of a log files like these is in logstash as far as I know.

---

<div class="post-metadata">

**Author:** ![Daniel6](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@Daniel6](https://discuss.elastic.co/u/Daniel6)\
**Post date:** [August 5, 2019, 7:45am UTC](https://discuss.elastic.co/t/how-to-read-same-file-multiple-times-in-filebeat/193706/3 "2019-08-05T07:45:07Z")

</div>

Hi stephenb,  
Thanks for your explanation.  
It's really helpful to me.  
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:** [September 2, 2019, 7:45am UTC](https://discuss.elastic.co/t/how-to-read-same-file-multiple-times-in-filebeat/193706/4 "2019-09-02T07:45:19Z")

</div>

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