# Reindex from a remote cluster

**URL:** <https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922>\
**Category:** Elasticsearch\
**Created:** [November 28, 2020, 12:34am UTC](https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922 "2020-11-28T00:34:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![twang](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@twang](https://discuss.elastic.co/u/twang)\
**Post date:** [November 28, 2020, 12:34am UTC](https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922/1 "2020-11-28T00:34:02Z")

</div>

Hi,

I am trying to copy my index from one source to another source from a remote cluster. to follow this link

> **[Migrating your Elasticsearch data | Elasticsearch Service Documentation |...](https://www.elastic.co/guide/en/cloud/current/ec-migrate-data.html#ec-migrate-data)**

I got an error: my cluster is not on reindex.remote.whitelist.

I were using - Elasticsearch (Self-Managed) – Azure Marketplace,  
I created 2 nodes of clusters succssefully. I did create a few blank indexes. I have another 2 nodes of clusters with full seeds indexes. Now, I want to copy the old one to new one.

Please let me know how can I add the remote cluster to the new reindex.remote.whitelist.

Thank you!

Tom

---

<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:** [November 28, 2020, 7:11am UTC](https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922/2 "2020-11-28T07:11:00Z")

</div>

Welcome.

Can't you modify `elasticsearch.yml` configuration file?

BTW did you look at [Cloud by Elastic](https://www.elastic.co/cloud)? It also runs on Azure.

Cloud by elastic is one way to have access to **all features** , all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, Maps UI, Alerting and built-in solutions named [Observability](https://www.elastic.co/observability), [Security](https://www.elastic.co/security), [Enterprise Search](https://www.elastic.co/enterprise-search) and what is coming next 🙂 ...

Everything in few clicks.

---

<div class="post-metadata">

**Author:** ![twang](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@twang](https://discuss.elastic.co/u/twang)\
**Post date:** [November 30, 2020, 3:43pm UTC](https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922/3 "2020-11-30T15:43:48Z")

</div>

HI David, I am new here not sure how to modify elasticsearch.yml. I did register a free trail for Cloud by Elastic, but i did know what can do to use it. Please advise what would the steps I should take.

Thank you!

Tom

---

<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:** [November 30, 2020, 4:04pm UTC](https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922/4 "2020-11-30T16:04:11Z")

</div>

> [@twang](#):
>
> HI David, I am new here not sure how to modify elasticsearch.yml.

The same way you would edit any other configuration file.

> [@twang](#):
>
> I did register a free trail for Cloud by Elastic, but i did know what can do to use it. Please advise what would the steps I should take.

Using cloud was just an advice.

So depending on how you are running elasticsearch, the answer could be different.

---

<div class="post-metadata">

**Author:** ![twang](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@twang](https://discuss.elastic.co/u/twang)\
**Post date:** [December 1, 2020, 1:44am UTC](https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922/5 "2020-12-01T01:44:44Z")

</div>

Hi,

I was able to modify elasticsearch.yml through PuTTY HHS. I did modify esdata-0 and esdat-1 to add

reindex.remote.whitelist: oldhost:9200

then

sudo -i service elasticsearch stop  
sudo -i service elasticsearch start

stop/start elasticsearch after modification. However, my elasticsearch was not working at all. I was not able to make a connection to URL:9200.

[http://url:9200/\_aliases?pretty=true](http://url:9200/_aliases?pretty=true)

(Error: Request timed out)

After deleted "reindex.remote.whitelist: oldhost:9200" from elasticsearch.yml, it works as before.

Ayn idea???

Thank you!

Tom

---

<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 29, 2020, 1:45am UTC](https://discuss.elastic.co/t/reindex-from-a-remote-cluster/256922/6 "2020-12-29T01:45:01Z")

</div>

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