# How to reindex data from cluster to another

**URL:** <https://discuss.elastic.co/t/how-to-reindex-data-from-cluster-to-another/255634>\
**Category:** Elasticsearch\
**Created:** [November 17, 2020, 8:07am UTC](https://discuss.elastic.co/t/how-to-reindex-data-from-cluster-to-another/255634 "2020-11-17T08:07:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokulnath112](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gokulnath112](https://discuss.elastic.co/u/gokulnath112)\
**Post date:** [November 17, 2020, 8:07am UTC](https://discuss.elastic.co/t/how-to-reindex-data-from-cluster-to-another/255634/1 "2020-11-17T08:07:12Z")

</div>

Hi Team,  
Greetings..! Hope you are safe and good in health.  
I want to reindex data of index 'A', from cluster 'X' to cluster 'Y'. I have whitelisted the 'X' cluster host in cluster 'Y' using reindex.remote.whitelist: in all elastic nodes.  
But I got "message": "Client request timeout" as message.  
Configuration details:  
Cluster X: Version:7.2.1,  
Nodes count:5 data & 3 master  
Cluster Y: Version:7.2.1,  
Nodes count: 3 data/master nodes(no dedicated master node).

Kindly help me to reindex data from one cluster to another cluster.

POST \_reindex  
{  
"source": {  
"remote": {  
"host": "X cluster host and ip",  
"username": "user",  
"password": "pass"  
},  
"index": "source",  
"query": {  
"match": {  
"test": "data"  
}  
}  
},  
"dest": {  
"index": "dest"  
}  
}  
Thanks in advance.

Regards,  
Gokul

---

<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 15, 2020, 8:07am UTC](https://discuss.elastic.co/t/how-to-reindex-data-from-cluster-to-another/255634/2 "2020-12-15T08:07:16Z")

</div>

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