# Index migration from one elasticsearch cluster to another

**URL:** <https://discuss.elastic.co/t/index-migration-from-one-elasticsearch-cluster-to-another/354290>\
**Category:** Elasticsearch\
**Created:** [February 28, 2024, 4:31am UTC](https://discuss.elastic.co/t/index-migration-from-one-elasticsearch-cluster-to-another/354290 "2024-02-28T04:31:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frances\_Chu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frances_chu/32/127298_2.png) [@Frances\_Chu](https://discuss.elastic.co/u/Frances_Chu)\
**Post date:** [February 28, 2024, 4:31am UTC](https://discuss.elastic.co/t/index-migration-from-one-elasticsearch-cluster-to-another/354290/1 "2024-02-28T04:31:23Z")

</div>

I would like to copy/move indexA from ES cluster A to ES cluster B.

Is it possible to do that? I am using free version.

---

<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:** [February 28, 2024, 8:09am UTC](https://discuss.elastic.co/t/index-migration-from-one-elasticsearch-cluster-to-another/354290/2 "2024-02-28T08:09:38Z")

</div>

Some ideas:

- snapshot / restore
- reindex from remote

Hope this helps

---

<div class="post-metadata">

**Author:** ![ahmed\_charafouddine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmed_charafouddine/32/45129_2.png) [@ahmed\_charafouddine](https://discuss.elastic.co/u/ahmed_charafouddine)\
**Post date:** [February 28, 2024, 8:18am UTC](https://discuss.elastic.co/t/index-migration-from-one-elasticsearch-cluster-to-another/354290/3 "2024-02-28T08:18:11Z")

</div>

As @dadoonet says, you canuse reindex from remote

Reindex supports reindexing from a remote Elasticsearch cluster

Example :

```auto
POST _reindex
{
  "source": {
    "remote": {
      "host": "http://otherhost:9200",
      "username": "user",
      "password": "pass"
    },
    "index": "my-index-000001",
    "query": {
      "match": {
        "test": "data"
      }
    }
  },
  "dest": {
    "index": "my-new-index-000001"
  }
}

```

make sure that the network flow is open between the two clusters

> **[Reindex API | Elasticsearch Guide \[8.12\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#reindex-from-remote)**

---

<div class="post-metadata">

**Author:** ![Frances\_Chu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frances_chu/32/127298_2.png) [@Frances\_Chu](https://discuss.elastic.co/u/Frances_Chu)\
**Post date:** [February 29, 2024, 1:13am UTC](https://discuss.elastic.co/t/index-migration-from-one-elasticsearch-cluster-to-another/354290/4 "2024-02-29T01:13:20Z")

</div>

Big thx

---

<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:** [March 28, 2024, 1:13am UTC](https://discuss.elastic.co/t/index-migration-from-one-elasticsearch-cluster-to-another/354290/5 "2024-03-28T01:13:37Z")

</div>

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