Recover data after the lost of master [7.1.1]

After losing the masters there's no guarantees that your data will come back intact, but you can try the elasticsearch-node tool, particularly elasticsearch-node detach-cluster. Please read the instructions carefully and understand the risks before proceeding.

For future reference, it's vitally important to use persistent volumes for the master-eligible nodes in the cluster, as well as for the data nodes.