I configured Elasticsearch with Search Guard SSL and Search Guard and am able to run it correctly with the default data path setting, i.e., path.data commented out in elasticsearch.yml. The default data path is /var/lib/elasticsearch, and i see that it creates a nodes directory in there.
Now if I uncomment out the path.data line in elasticsearch.yml, set it to a new path, and restart elasticsearch, I get “search guard index not healthy yet”.
If I change it back to the default, that is comment out the path.data in elasticsearch.yml, and restart elasticsearch, it works again.
The new path is owned by elasticsearch user and group, and I do see a nodes directory created in the new path, so it’s not a permissions issue.
Is there something else I need to do in Search Guard if I change the data path than just restarting elasticsearch?