cat indices APIedit

Returns high-level information about indices in a cluster.


GET /_cat/indices/<index>

GET /_cat/indices


Use the cat indices API to get the following information for each index in a cluster:

  • Shard count
  • Document count
  • Deleted document count
  • Primary store size
  • Total store size of all shards, including shard replicas

These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.

To get an accurate count of Elasticsearch documents, use the cat count or count APIs.

Path parametersedit

(Optional, string) Comma-separated list or wildcard expression of index names used to limit the request.

Query parametersedit

(Optional, byte size units) Unit used to display byte values.
(Optional, string) Short version of the HTTP accept header. Valid values include JSON, YAML, etc.
(Optional, string) Comma-separated list of column names to display.

(Optional, string) Health status used to limit returned indices. Valid values are:

  • green
  • yellow
  • red

By default, the response includes indices of any health status.

(Optional, boolean) If true, the response includes help information. Defaults to false.
(Optional, boolean) If true, the response includes information from segments that are not loaded into memory. Defaults to false.
(Optional, boolean) If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.
(Optional, time units) Specifies the period of time to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 30s.
pri (primary shards)
(Optional, boolean) If true, the response only includes information from primary shards. Defaults to false.
(Optional, string) Comma-separated list of column names or column aliases used to sort the response.
(Optional, time units) Unit used to display time values.
(Optional, boolean) If true, the response includes column headings. Defaults to false.


GET /_cat/indices/twi*?v&s=index

The API returns the following response:

health status index    uuid                   pri rep docs.count docs.deleted store.size
yellow open   twitter  u8FNjxh8Rfy_awN11oDKYQ   1   1       1200            0     88.1kb         88.1kb
green  open   twitter2 nYFWZEO7TUiOjLQXBaYJpA   1   0          0            0       260b           260b