Greetings,
We’re currently facing an issue with our Elasticsearch cluster, which consists of 8 nodes. Unfortunately, we accidentally “emptied” an index (my_index
) from the cluster. While we don’t have a snapshot, we do have a backup of the entire Elasticsearch data folder. We attempted to restore the index data manually by copying it back into the appropriate UUID directory in the data folder.
However, after doing this and restarting the Elasticsearch service, the index is being automatically rewritten by the cluster with new data.
What We’ve Tried:
- We excluded one of the nodes, "node-8_", from the cluster and tried pointing it to the data folder. Elasticsearch started, but we were unable to log in or reset the password. The error message kept saying the cluster health is not determined.
- We also tried setting the
discovery.seed
to single-node mode, but this also didn’t work.
Current Situation:
The goal is to restore the original index data (my_index
) and merge it with the new data that is currently being written to the index. Essentially, we want to retain the existing data from the backup and integrate it with the fresh data that is already being written to my_index
.
My Question
Is there any way around this issue to restore the my_index
and merge the old data with the new data?
Any help or advice on how to approach this would be greatly appreciated!
Thank you!