Can not reindex to another host

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

1 Like

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

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

Did you look at https://www.elastic.co/cloud and 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 :slight_smile: ...

1 Like

Impressive! but choice is by my above level. :smile:

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