Unable to check Elasticsearch cluster health w/shield plugin installed


#1

Now that I have elasticsearch plugin installed, how do I check my elasticsearch cluster healther/indices/any curl command?

How do I run curl ':9200/_cat/indices?v' when I have shield plugin?

I get the following message:

root@elasticVM:~# curl 'elastic_ip.40:9200/_cat/indices?v'
{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/_cat/indices?v]","header":{"WWW-Authenticate":"Basic realm="shield""}}],"type":"security_exception","reason":"missing authentication token for REST request [/_cat/indices?v]","header":{"WWW-Authenticate":"Basic realm="shield""}},"status":401}


(David Pilato) #2

You need to provide your username and password


(bhellsun) #3

you have to give the command like this

"curl 'elastic_ip.40:9200/_cat/indices?v' -u username/password"
which worked for me


(system) #4