How do I see how many shards a index is using?

Hello

To check if something is working correctly, I want to see how many shards a index is using.

How can I check this thru the dev console?

Thank you.

This should work:

GET /_cat/indices/INDEXNAME?v

OK, and just to not make a duplicate topic, how do I count how many indexes I have in total?

Thanks

Something like this (unix):

curl localhost:9200/_cat/indices | wc -l

should work I think.

Thank you.

Lets see if I can find one for the total amount of shards I have (health might work)

Yeah

GET /_cat/health?v

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.