What is the best way to transfer data when you change your cluster name?
I am working on a cluster with just a single node for development.
I tried changing my cluster name, and copied the entire nodes folder from /var/lib/elasticsearch/(old cluster folder name) to var/lib/elasticsearch/(new cluster folder name) but kibana cannot find the indexes from my old cluster name. And when I had new incoming log data imported into them from logstash, kibana found them as if they were new and did not have any previous records.
What’s going on here?
I eventually did this, which seemed to work, but it seems like there may be issues:
- Stop elasticsearch
- Rename the elasticsearch cluster in elasticsearch.yml
- Go to /var/lib/elasticsearch and preemptively copy the old cluster folder into the new cluster folder using the new cluster’s exact name specified in elasticsearch.yml
- Start elasticsearch
Any thoughts here?