We are upgrading our elastic-search , kibana cluster from 7.17 to 8.17. As part of the upgrade, we are required to reindex the existing indices. During this process it is renaming the indices. ex. it is renaming aps to reindexed-v7-aps. This will be an issue as the applications teams have the previous name in the code. How can we prevent the renaming?
It is not possible, if you need to reindex an index you cannot use the same name as the index still exists in the cluster.
I'm assuming that this index does not receive writes anymore, so after the reindex for the renamed index finishes, you would need to remove the old index and then do another reindex to use the old index name.
Also make sure you have backups before doing this.
Once you have removed the old index you can avoid reindexing again by either cloning the new index back into the old name or simply create an alias with the old name for the new index.
Thank you Leandro for the response
Christian, I did the reindex using the Elastic Search upgrade assistant. When I queried for aliases, I see the alias already exists