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",
"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.