Skip to main content Skip to complementary content

Setting up a new Elasticsearch cluster alongside your Elasticsearch cluster used in 8.0.x

You can use the Reindex API to migrate indices from the old Elasticsearch cluster to a new Elasticsearch cluster.

For more information, see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#reindex-from-remote.

Procedure

  1. Add the following configuration parameter to the elasticsearch.yml file of your new Elasticsearch cluster to enable it to access your old Elasticsearch cluster:
    reindex.remote.whitelist: oldhost:*
  2. Replace oldhost with the Elasticsearch host.
    Do not specify the Elasticsearch port but set value to * or you may get the following error message: "[oldhost:9200] not whitelisted in reindex.remote.whitelist"
  3. Restart the Elasticsearch cluster.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!