# Recreate index from scratch with static file

**URL:** <https://discuss.elastic.co/t/recreate-index-from-scratch-with-static-file/95690>\
**Category:** Beats\
**Created:** [August 3, 2017, 10:18am UTC](https://discuss.elastic.co/t/recreate-index-from-scratch-with-static-file/95690 "2017-08-03T10:18:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DFrant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dfrant/32/20512_2.png) [@DFrant](https://discuss.elastic.co/u/DFrant)\
**Post date:** [August 3, 2017, 10:18am UTC](https://discuss.elastic.co/t/recreate-index-from-scratch-with-static-file/95690/1 "2017-08-03T10:18:01Z")

</div>

Hello,

I have a static log file for testing, and every time I recreated the index (for testing purpose), there is no data in the index.  
I have to change the file name and restart the filebeat service.

Is there an option to recreate the index from scratch?

Thanks

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 3, 2017, 2:36pm UTC](https://discuss.elastic.co/t/recreate-index-from-scratch-with-static-file/95690/2 "2017-08-03T14:36:53Z")

</div>

Filebeat stores state in a local registry file. You need to delete that file. It's normally at `/var/lib/filebeat/registry`.

---

<div class="post-metadata">

**Author:** ![DFrant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dfrant/32/20512_2.png) [@DFrant](https://discuss.elastic.co/u/DFrant)\
**Post date:** [August 3, 2017, 2:59pm UTC](https://discuss.elastic.co/t/recreate-index-from-scratch-with-static-file/95690/3 "2017-08-03T14:59:38Z")

</div>

Thanks!

---

<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 24, 2017, 10:28am UTC](https://discuss.elastic.co/t/recreate-index-from-scratch-with-static-file/95690/4 "2017-08-24T10:28:03Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
