# To reindex the whole data once in a day

**URL:** <https://discuss.elastic.co/t/to-reindex-the-whole-data-once-in-a-day/42162>\
**Category:** Logstash\
**Created:** [February 18, 2016, 5:00pm UTC](https://discuss.elastic.co/t/to-reindex-the-whole-data-once-in-a-day/42162 "2016-02-18T17:00:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Venkatesh](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@Sandeep\_Venkatesh](https://discuss.elastic.co/u/Sandeep_Venkatesh)\
**Post date:** [February 18, 2016, 5:00pm UTC](https://discuss.elastic.co/t/to-reindex-the-whole-data-once-in-a-day/42162/1 "2016-02-18T17:00:07Z")

</div>

I want to delete the index and index it again with same name once in a day using logstash.  
I want the same index name because an application will be using the same index name to fetch the data.  
Is there any we can do that. ?

Thanks,  
Sandeep

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 19, 2016, 3:03pm UTC](https://discuss.elastic.co/t/to-reindex-the-whole-data-once-in-a-day/42162/2 "2016-02-19T15:03:39Z")

</div>

This is often solved by introducing alias as described [here](https://www.elastic.co/guide/en/elasticsearch/guide/current/index-aliases.html).

---

<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 6, 2017, 5:10am UTC](https://discuss.elastic.co/t/to-reindex-the-whole-data-once-in-a-day/42162/3 "2017-07-06T05:10:36Z")

</div>


