cat API
Using the cat API, you can answer questions like which node is the elected master, what state is the cluster in, how many documents are in each index, and so on.
To see the available operations in the cat API, use the following command:
To see what each column represents, use the parameter:
To see all the available headers, use the ?help
parameter:
Typically, for any operation you can find out what headers are available using the parameter, and then use the ?h
parameter to limit the output to only the headers that you care about.
If you use the security plugin, make sure you have the appropriate permissions.