# Remote Reindex not importing data

**URL:** <https://discuss.elastic.co/t/remote-reindex-not-importing-data/188619>\
**Category:** Elasticsearch\
**Created:** [July 3, 2019, 6:31am UTC](https://discuss.elastic.co/t/remote-reindex-not-importing-data/188619 "2019-07-03T06:31:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiteeshR](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@NiteeshR](https://discuss.elastic.co/u/NiteeshR)\
**Post date:** [July 3, 2019, 6:31am UTC](https://discuss.elastic.co/t/remote-reindex-not-importing-data/188619/1 "2019-07-03T06:31:29Z")

</div>

Hi,  
I'm using below re-index query for copying data from remote ES host (For selected epoch date range). Query finished, but it is not displaying proper count in result. When I verified if the data is copied using query API, it is not appearing. I am using ES version 5.6.4 and query is below:

// POST \_reindex  
{  
"source": {  
"remote": {  
"host": "[https://remoteHost:9240](https://remoteHost:9240)",  
"username": "Administrator",  
"password": "manage"  
},  
"index": "gateway\_default\_analytics",  
"query": {  
"range" : {  
"createdDate" : {  
"gte": 1561635084595,  
"lte": 1561692665793,  
"format": "epoch\_millis"  
}  
}  
}  
},  
"dest": {  
"index": "gateway\_default\_analytics"  
}  
}

Result:  
//{  
"took": 20,  
"timed\_out": false,  
"total": 0,  
"updated": 0,  
"created": 0,  
"deleted": 0,  
"batches": 0,  
"version\_conflicts": 0,  
"noops": 0,  
"retries": {  
"bulk": 0,  
"search": 0  
},  
"throttled\_millis": 0,  
"requests\_per\_second": -1,  
"throttled\_until\_millis": 0,  
"failures":   
}

The query when I executed to check data in remote host, it is having 6 entries.

---

<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 31, 2019, 6:31am UTC](https://discuss.elastic.co/t/remote-reindex-not-importing-data/188619/2 "2019-07-31T06:31:43Z")

</div>

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