# Reindex to remote server

**URL:** <https://discuss.elastic.co/t/reindex-to-remote-server/97243>\
**Category:** Elasticsearch\
**Created:** [August 16, 2017, 11:10am UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243 "2017-08-16T11:10:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 16, 2017, 11:10am UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/1 "2017-08-16T11:10:07Z")

</div>

Is there any chance to reindex to remote server?  
The destination will be the remote.

supposedly like this...

```
POST 192.168.200.250:9200/_reindex
    {
      "source": {
        "index": "es_xfer",
        "query": {
          "match_all": {
          }
        }
      },
      "dest": {
        "remote": {
    	  "host": "192.168.200.249:9200"
    	},
        "index": "sample"
      }
    }
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 16, 2017, 1:10pm UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/2 "2017-08-16T13:10:55Z")

</div>

Hey,

you can only pull in data from a remote source, not indexing into a remote source. However this shouldnt be a problem, you just have to execute the reindex from the other cluster?

--Alex

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 16, 2017, 5:04pm UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/3 "2017-08-16T17:04:49Z")

</div>

So it is not possible? or there's another workaround?

Sorry but the other cluster doesn't have a public ip.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [August 16, 2017, 5:28pm UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/4 "2017-08-16T17:28:27Z")

</div>

VPNs and routing could still make that accessible, but barring that, other options include having both clusters share a snapshot repository (probably S3, so it could be accessible to both), and snapshotting from one cluster, and restoring to the other.

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 16, 2017, 6:20pm UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/5 "2017-08-16T18:20:15Z")

</div>

Is there a way which I can store my repository to a remote server?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [August 16, 2017, 10:52pm UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/6 "2017-08-16T22:52:41Z")

</div>

In order to be a shared repository, both clusters would need to be able to read/write to the same shared filesystem. This is why I recommended S3, as it's the most secure option for external storage that works as a repository for Elasticsearch.

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 17, 2017, 1:54am UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/7 "2017-08-17T01:54:04Z")

</div>

Yes, I could use S3 but it is not free. 😂  
Anyway, thank you for your input @theuntergeek.

---

<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:** [September 14, 2017, 1:54am UTC](https://discuss.elastic.co/t/reindex-to-remote-server/97243/8 "2017-09-14T01:54:15Z")

</div>

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