# Can not reindex to another host

**URL:** <https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633>\
**Category:** Elasticsearch\
**Created:** [April 26, 2019, 11:22am UTC](https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633 "2019-04-26T11:22:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [April 26, 2019, 11:22am UTC](https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633/1 "2019-04-26T11:22:13Z")

</div>

Hi community,

I try to reindex from remote elasticsearch but i got err response.  
Here is what I run in kibana dev tool,

> POST \_reindex  
> {  
> "source": {  
> "remote": {  
> "host": "[https://anotherhost:443](https://anotherhost:443)",  
> "socket\_timeout": "1m",  
> "connect\_timeout": "10s"  
> },  
> "index": "old-2019.01",  
> "query": {  
> "match\_all": {}  
> }  
> },  
> "dest": {  
> "index": "new-2019.01"  
> }  
> }

and this is response

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "illegal\_argument\_exception",  
> "reason": "[anotherhost:443] not whitelisted in reindex.remote.whitelist"  
> }  
> ],  
> "type": "illegal\_argument\_exception",  
> "reason": "[anotherhost:443] not whitelisted in reindex.remote.whitelist"  
> },  
> "status": 400  
> }

plz advise how to fix this.

---

<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:** [April 26, 2019, 11:40am UTC](https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633/2 "2019-04-26T11:40:29Z")

</div>

Read [https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html#reindex-from-remote](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html#reindex-from-remote)

---

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [April 29, 2019, 2:26am UTC](https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633/3 "2019-04-29T02:26:08Z")

</div>

Thank you @dadoonet.  
I forgot to tell one thing I use AWS Elasticsearch Domain.  
I can not edit elasticsearch.yml. 😢

---

<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:** [April 29, 2019, 5:01am UTC](https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633/4 "2019-04-29T05:01:25Z")

</div>

Did you look at [https://www.elastic.co/cloud](https://www.elastic.co/cloud) and [https://aws.amazon.com/marketplace/pp/B01N6YCISK](https://aws.amazon.com/marketplace/pp/B01N6YCISK) ?

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, APM, Logs UI, Infra UI and what is coming next 🙂 ...

---

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [May 8, 2019, 7:45am UTC](https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633/6 "2019-05-08T07:45:10Z")

</div>

Impressive! but choice is by my above level. 😄

---

<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 5, 2019, 7:47am UTC](https://discuss.elastic.co/t/can-not-reindex-to-another-host/178633/7 "2019-06-05T07:47:24Z")

</div>

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