# Retriving to read the same file

**URL:** <https://discuss.elastic.co/t/retriving-to-read-the-same-file/126396>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 2, 2018, 8:31am UTC](https://discuss.elastic.co/t/retriving-to-read-the-same-file/126396 "2018-04-02T08:31:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [April 2, 2018, 8:31am UTC](https://discuss.elastic.co/t/retriving-to-read-the-same-file/126396/1 "2018-04-02T08:31:16Z")

</div>

Hi all

I'm trying to read the same file in order to do some tests in elasticsearch, but if I don't change the name of the file filebeat ignored my decision.

I started the filebeat with the following command  
sudo filebeat -e --modules apache2 -M "apache2.access.var.paths=[/apache\_logs\*]"

Then filebeat processed apache\_logs at the first time.  
After I stopped the process cancel in elasticsearch the data and I retry to use the same command nothing change, filebeat start and don't process again apache\_logs. If I copy apache\_logs in apache\_logs2 the filebeat processed apache\_logs2

In logstash I known that there si a sincedb file, here is there the other file?

Thank you  
Franco

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [April 2, 2018, 1:11pm UTC](https://discuss.elastic.co/t/retriving-to-read-the-same-file/126396/2 "2018-04-02T13:11:09Z")

</div>

You can achieve this by deleting the registry file. It is located in `/var/lib/filebeat/registry`.

---

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [April 2, 2018, 4:08pm UTC](https://discuss.elastic.co/t/retriving-to-read-the-same-file/126396/3 "2018-04-02T16:08:44Z")

</div>

> [@adrisr](#):
>
> /var/lib/filebeat/registry

Thank you Adrian, I try it.  
Franco

---

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [April 2, 2018, 5:25pm UTC](https://discuss.elastic.co/t/retriving-to-read-the-same-file/126396/4 "2018-04-02T17:25:04Z")

</div>

It's ok  
Great  
thank you Adrian

---

<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:** [April 30, 2018, 5:25pm UTC](https://discuss.elastic.co/t/retriving-to-read-the-same-file/126396/5 "2018-04-30T17:25:11Z")

</div>

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