# Recreating an index re-associate the data?

**URL:** https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740
**Category:** Elasticsearch
**Created:** [March 15, 2017, 4:02pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740 "2017-03-15T16:02:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ZillaG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zillag/32/10505_2.png) [@ZillaG](https://discuss.elastic.co/u/ZillaG)
#### Post date: [March 15, 2017, 4:02pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740/1 "2017-03-15T16:02:39Z")

</div>

ES v2.4.x

I've read posts in the forum discouraging users from opening currently closed indices, and to delete and recreate the index as the preferred way. If I recreate an index, will it be associated with the data it was originally created for?

For example I create a daily index of our logs

```
logstash-customer-2017.03.13
logstash-customer-2017.03.14
logstash-customer-2017.03.15

```

I can then view the logs I want in Kibana based on the date.

Now if I delete logstash-customer-2017.03.13 and re-create it, how do the 2017.03.13 logs get re-associated with that index?

I hope the question makes sense.

Thanks

---

<div class="post-metadata">

### Author: ![Cylindric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cylindric/32/5660_2.png) [@Cylindric](https://discuss.elastic.co/u/Cylindric)
#### Post date: [March 15, 2017, 4:20pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740/2 "2017-03-15T16:20:09Z")

</div>

If you delete it, you lose the data. Do you have any links to this advice? I wonder if they were talking about something slightly different.

---

<div class="post-metadata">

### Author: ![ZillaG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zillag/32/10505_2.png) [@ZillaG](https://discuss.elastic.co/u/ZillaG)
#### Post date: [March 15, 2017, 4:33pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740/3 "2017-03-15T16:33:29Z")

</div>

Look at some of the comments in [Open closed index automatically](https://discuss.elastic.co/t/open-closed-index-automatically/21837)

---

<div class="post-metadata">

### Author: ![Cylindric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cylindric/32/5660_2.png) [@Cylindric](https://discuss.elastic.co/u/Cylindric)
#### Post date: [March 15, 2017, 4:46pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740/4 "2017-03-15T16:46:58Z")

</div>

I'm not sure why @dadoonet thinks opening an existing index with lots of data in it is in any way comparable to creating a new index. It's fairly clear to me that in the first case, you want to keep that data and are prepared to suck up the overhead.

Also, he says it is slower, so it's not done automatically, not that you should never do it. I guess if they auto-opened, you would get all sorts of unexpected load spikes. That other question is a about "automatically reopening closed indices" - a totally different proposition.

---

<div class="post-metadata">

### Author: ![ZillaG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zillag/32/10505_2.png) [@ZillaG](https://discuss.elastic.co/u/ZillaG)
#### Post date: [March 15, 2017, 4:48pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740/5 "2017-03-15T16:48:46Z")

</div>

No, I don't want to "automatically open closed index" but I want to manually open one. @dadoonet's remarks in that post just caught my attentions.

---

<div class="post-metadata">

### Author: ![Cylindric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cylindric/32/5660_2.png) [@Cylindric](https://discuss.elastic.co/u/Cylindric)
#### Post date: [March 15, 2017, 4:50pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740/6 "2017-03-15T16:50:04Z")

</div>

I would monitor the effect of opening those indices on your cluster, but if you need that data, you need it.

---

<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 12, 2017, 4:50pm UTC](https://discuss.elastic.co/t/recreating-an-index-re-associate-the-data/78740/7 "2017-04-12T16:50:13Z")

</div>

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