Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.14 KB

cat-count.md

File metadata and controls

58 lines (41 loc) · 1.14 KB
layout title parent nav_order has_children redirect_from
default
CAT count
CAT API
10
false
/opensearch/rest-api/cat/cat-count/

CAT count

Introduced 1.0 {: .label .label-purple }

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

Path and HTTP methods

GET _cat/count?v
GET _cat/count/<index>?v

URL parameters

All CAT count URL parameters are optional. You can specify any of the common URL parameters.

Example requests

GET _cat/count?v

{% include copy-curl.html %}

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

GET _cat/count/<index_or_alias>?v

{% include copy-curl.html %}

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

GET _cat/count/index_or_alias_1,index_or_alias_2,index_or_alias_3

{% include copy-curl.html %}

Example response

The following response shows the overall document count as 1625:

epoch      | timestamp | count
1624237738 | 01:08:58  | 1625