# How to "merge" same name indices

**URL:** <https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993>\
**Category:** Elasticsearch\
**Created:** [November 16, 2017, 5:17pm UTC](https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993 "2017-11-16T17:17:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinray0030](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kevinray0030](https://discuss.elastic.co/u/kevinray0030)\
**Post date:** [November 16, 2017, 5:17pm UTC](https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993/1 "2017-11-16T17:17:27Z")

</div>

Hello all,

I am running into an issue where I am receiving the following error:  
can not be imported as a dangling index, as index with same name already exists in cluster metadata

I know that I am getting this error because I have an index that is named graylog\_2 and I am attempting to "merge" and old graylog\_2 index.

My question, is how do I do this correctly? The old graylog\_2 index has old data from months ago that I am looking to get reimplemented to our graylog cluster and the new graylog\_2 index has information from a few days ago, that is also necessary to have.

Thanks.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 24, 2017, 9:18pm UTC](https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993/2 "2017-11-24T21:18:41Z")

</div>

The simplest way would be to open the old index in another cluster and reindex it into the new index using reindex API.

---

<div class="post-metadata">

**Author:** ![kevinray0030](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kevinray0030](https://discuss.elastic.co/u/kevinray0030)\
**Post date:** [November 27, 2017, 6:06am UTC](https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993/3 "2017-11-27T06:06:55Z")

</div>

Hey Igor,

Thanks for the reply on this.  
So would this mean, that I could take the folder structure from one server to another server, rename it and then move the newly reindexed node back to the original server?

I attempted to test this and received an error along the lines of Limit of total fields [1000] in index [] has been exceeded and I am not sure why.  
If I am reindexing, it shouldn't be creating new fields right?

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 27, 2017, 11:55am UTC](https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993/4 "2017-11-27T11:55:48Z")

</div>

> [@kevinray0030](#):
>
> So would this mean, that I could take the folder structure from one server to another server, rename it and then move the newly reindexed node back to the original server?

I am not sure I understand what you mean by this.

---

<div class="post-metadata">

**Author:** ![kevinray0030](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kevinray0030](https://discuss.elastic.co/u/kevinray0030)\
**Post date:** [November 27, 2017, 4:35pm UTC](https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993/5 "2017-11-27T16:35:43Z")

</div>

What I am attempting to do, is take the folder structure of my index, move it temporarily to another elasticsearch cluster (A sandbox that was built) and reindex it.  
Is there a better way of doing this or is this the incorrect way of doing this?

Unfortunately, my inexperience with elasticsearch seems to make this process more daunting than I expected.

---

<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:** [December 25, 2017, 4:36pm UTC](https://discuss.elastic.co/t/how-to-merge-same-name-indices/107993/6 "2017-12-25T16:36:12Z")

</div>

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