# Export and import index

**URL:** <https://discuss.elastic.co/t/export-and-import-index/182491>\
**Category:** Elasticsearch\
**Created:** [May 23, 2019, 5:07pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491 "2019-05-23T17:07:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Post date:** [May 23, 2019, 5:07pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/1 "2019-05-23T17:07:33Z")

</div>

Is there a way to export index from one cluster and import into another cluster ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 5:32pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/2 "2019-05-23T17:32:27Z")

</div>

We call it snapshot and restore.  
Otherwise we have reindex from remote.

---

<div class="post-metadata">

**Author:** ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Post date:** [May 23, 2019, 5:44pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/3 "2019-05-23T17:44:48Z")

</div>

if i copy index from 5.3 cluster into 6.2 cluster will it be fine ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 6:56pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/4 "2019-05-23T18:56:07Z")

</div>

If the first time you indexed it was a 5.x cluster then yes it should work.

---

<div class="post-metadata">

**Author:** ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Post date:** [May 23, 2019, 7:11pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/5 "2019-05-23T19:11:22Z")

</div>

transferring via logstash be faster than remote reindex ? trying to check which one is advantageous

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 8:44pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/6 "2019-05-23T20:44:16Z")

</div>

Not sure what role has logstash here.  
Do you mean to do the reindex?

I'd personally start a 7.1 cluster and use reindex from remote api to read the 5.x cluster.

---

<div class="post-metadata">

**Author:** ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Post date:** [May 23, 2019, 8:56pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/7 "2019-05-23T20:56:06Z")

</div>

If I can use logstash to copy index from one cluster to another cluster ...

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 9:12pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/8 "2019-05-23T21:12:32Z")

</div>

Surely but that's the same as using the reindex api.

---

<div class="post-metadata">

**Author:** ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Post date:** [May 23, 2019, 9:28pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/9 "2019-05-23T21:28:36Z")

</div>

True. But using the reindex API , we have to make the config change and restart the cluster. However, using log stash we do not require config change and cluster restart. Please clarify.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2019, 9:51pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/10 "2019-05-23T21:51:23Z")

</div>

Valid concern.

---

<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:** [June 20, 2019, 9:51pm UTC](https://discuss.elastic.co/t/export-and-import-index/182491/11 "2019-06-20T21:51:24Z")

</div>

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