# How to move an Index from Server A to B

**URL:** <https://discuss.elastic.co/t/how-to-move-an-index-from-server-a-to-b/204552>\
**Category:** Logstash\
**Created:** [October 21, 2019, 8:56pm UTC](https://discuss.elastic.co/t/how-to-move-an-index-from-server-a-to-b/204552 "2019-10-21T20:56:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![baselai](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@baselai](https://discuss.elastic.co/u/baselai)\
**Post date:** [October 21, 2019, 8:56pm UTC](https://discuss.elastic.co/t/how-to-move-an-index-from-server-a-to-b/204552/1 "2019-10-21T20:56:11Z")

</div>

I'm looking for a way to move a 2.3 GB index from Server A to Server B, that is completely lives on a different domain/host.  
I tried logstash code, but it fails at some point and keeps pushing the data infinetly!

```auto
input {
  elasticsearch {
        hosts => "https://elasticServer-hosts"
        index => "index-1"
        query => '{ "query": { "match_all": {} }}'
        size => 1
        scroll => "5m"
      }
}
filter {
}
output {
elasticsearch {
    hosts => ["http://elastic-server2:9200"]
    index => "index-1"
  }
    }

```

---

<div class="post-metadata">

**Author:** ![KrishnaShah7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishnashah7/32/66810_2.png) [@KrishnaShah7](https://discuss.elastic.co/u/KrishnaShah7)\
**Post date:** [October 22, 2019, 3:05am UTC](https://discuss.elastic.co/t/how-to-move-an-index-from-server-a-to-b/204552/2 "2019-10-22T03:05:51Z")

</div>

Have you tried the other way, of taking the snapshot of that 2.3gb index and restore that on the new server B ?

---

<div class="post-metadata">

**Author:** ![baselai](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@baselai](https://discuss.elastic.co/u/baselai)\
**Post date:** [October 22, 2019, 1:32pm UTC](https://discuss.elastic.co/t/how-to-move-an-index-from-server-a-to-b/204552/3 "2019-10-22T13:32:44Z")

</div>

@KrishnaShah7 No, I didn't know about it

---

<div class="post-metadata">

**Author:** ![KrishnaShah7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishnashah7/32/66810_2.png) [@KrishnaShah7](https://discuss.elastic.co/u/KrishnaShah7)\
**Post date:** [October 22, 2019, 10:05pm UTC](https://discuss.elastic.co/t/how-to-move-an-index-from-server-a-to-b/204552/4 "2019-10-22T22:05:18Z")

</div>

Refer our [documentation page](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) and try this approach, and check if it works.

---

<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:** [November 19, 2019, 10:05pm UTC](https://discuss.elastic.co/t/how-to-move-an-index-from-server-a-to-b/204552/5 "2019-11-19T22:05:24Z")

</div>

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