CAT count

Introduced 1.0

The CAT count operation lists the number of documents in your cluster.

Path and HTTP methods

  1. GET _cat/count?v
  2. GET _cat/count/<index>?v

Example requests

  1. GET _cat/count?v

copy

To see the number of documents in a specific index or alias, add the index or alias name after your query:

  1. GET _cat/count/<index_or_alias>?v

copy

If you want to get information for more than one index or alias, separate the index or alias names with commas:

  1. GET _cat/count/index_or_alias_1,index_or_alias_2,index_or_alias_3

copy

Example response

The following response shows the overall document count as 1625:

  1. epoch | timestamp | count
  2. 1624237738 | 01:08:58 | 1625