# How to transfer elastic index created in local machine to elastic cloud?

**URL:** <https://discuss.elastic.co/t/how-to-transfer-elastic-index-created-in-local-machine-to-elastic-cloud/139571>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [July 11, 2018, 1:00pm UTC](https://discuss.elastic.co/t/how-to-transfer-elastic-index-created-in-local-machine-to-elastic-cloud/139571 "2018-07-11T13:00:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lakshay\_Arora](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@Lakshay\_Arora](https://discuss.elastic.co/u/Lakshay_Arora)\
**Post date:** [July 11, 2018, 1:00pm UTC](https://discuss.elastic.co/t/how-to-transfer-elastic-index-created-in-local-machine-to-elastic-cloud/139571/1 "2018-07-11T13:00:26Z")

</div>

I have an index created in locally setup elasticsearch and I want to transfer that index on the elastic cloud. How can I do that?

---

<div class="post-metadata">

**Author:** ![zanbel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zanbel/32/20678_2.png) [@zanbel](https://discuss.elastic.co/u/zanbel)\
**Post date:** [July 11, 2018, 1:53pm UTC](https://discuss.elastic.co/t/how-to-transfer-elastic-index-created-in-local-machine-to-elastic-cloud/139571/2 "2018-07-11T13:53:27Z")

</div>

Hey @Lakshay_Arora,

Please note this forum is meant to discuss Elastic Cloud Enterprise (ECE), which is another product. For future question please see [https://www.elastic.co/cloud/as-a-service/support](https://www.elastic.co/cloud/as-a-service/support) 58 for Elastic Cloud support.

Reagrding your question, one option is to use [remote reindex](https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade-remote.html), in order to migrate existing index to a cluster hosted in Elastic Cloud.

HTH.

---

<div class="post-metadata">

**Author:** ![Lakshay\_Arora](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@Lakshay\_Arora](https://discuss.elastic.co/u/Lakshay_Arora)\
**Post date:** [July 12, 2018, 7:39am UTC](https://discuss.elastic.co/t/how-to-transfer-elastic-index-created-in-local-machine-to-elastic-cloud/139571/3 "2018-07-12T07:39:40Z")

</div>

@zanbel Thanks for your help,  
I have tried remote indexing but I got this error :  
{  
"error": {  
"root\_cause": [  
{  
"type": "connect\_exception",  
"reason": "Connection refused"  
}  
],  
"type": "connect\_exception",  
"reason": "Connection refused"  
},  
"status": 500  
}

my elasticsearch.yml file has only this line

reindex.remote.whitelist: ["localhost:9200"]

and I am doing reindexing like this :

POST \_reindex  
{  
"source": {  
"remote": {  
"host": "[http://localhost:9200](http://localhost:9200)"  
},  
"index": "datazomato",  
"query": {  
"match\_all": {}  
}  
},  
"dest": {  
"index": "datazomato"  
}  
}

Can you tell me what I am doing wrong?

---

<div class="post-metadata">

**Author:** ![zanbel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zanbel/32/20678_2.png) [@zanbel](https://discuss.elastic.co/u/zanbel)\
**Post date:** [July 12, 2018, 7:56am UTC](https://discuss.elastic.co/t/how-to-transfer-elastic-index-created-in-local-machine-to-elastic-cloud/139571/4 "2018-07-12T07:56:07Z")

</div>

@Lakshay_Arora can you please follow instructions in the following link [https://www.elastic.co/cloud/as-a-service/support](https://www.elastic.co/cloud/as-a-service/support) and order a support case.  
This forum is meant to discuss Elastic Cloud Enterprise, which is another product.

Thanks!

---

<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:** [July 26, 2018, 7:56am UTC](https://discuss.elastic.co/t/how-to-transfer-elastic-index-created-in-local-machine-to-elastic-cloud/139571/5 "2018-07-26T07:56:32Z")

</div>

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