Get high-level information about indices in a cluster, including backing indices for data streams.
Use this request 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.
CAT APIs are only intended for human consumption using the command line or Kibana console.
They are not intended for use by applications. For application consumption, use an index endpoint.
Comma-separated list of data streams, indices, and aliases used to limit the request.
Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.
The type of index that wildcard patterns can match.
Note that closed also matches non-hidden data streams, so their open backing indices are returned as well.
It does not restrict the response to closed indices only.
Supported values include:
all: Match any data stream or index, including hidden ones.
open: Match open, non-hidden indices. Also matches any non-hidden data stream.
closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
none: Wildcard expressions are not accepted.
Values:allopenclosedhiddennone
healthenum
The health status used to limit returned indices. By default, the response includes indices of any health status.
Supported values include:
green (or GREEN): All shards are assigned.
yellow (or YELLOW): All primary shards are assigned, but one or more replica shards are unassigned. If a node in the cluster fails, some data could be unavailable until that node is repaired.
red (or RED): One or more primary shards are unassigned, so some data is unavailable. This can occur briefly during cluster startup as primary shards are assigned.
If true, the response includes information from segments that are not loaded into memory.
priboolean · default: false
If true, the response only includes information from primary shards.
master_timeoutuniononeOf · default: 30s
Period to wait for a connection to the master node.
Values:-10
hunionstring | string[]
List of columns to appear in the response. Supports simple wildcards.
sunionstring | string[]
List of columns that determine how the table should be sorted.
Sorting defaults to ascending and can be changed by setting :asc
or :desc as a suffix to the column name.
formatstring · default: text
Specifies the format to return the columnar data in, can be set to
text, json, cbor, yaml, or smile.
helpboolean · default: false
When set to true will output available columns. This option
can't be combined with any other query string option.
vboolean · default: false
When set to true will enable verbose output.
bytesenum
Sets the units for columns that contain a byte-size value.
Note that byte-size value units work in terms of powers of 1024. For instance 1kb means 1024 bytes, not 1000 bytes.
If omitted, byte-size values are rendered with a suffix such as kb, mb, or gb, chosen such that the numeric value of the column is as small as possible whilst still being at least 1.0.
If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
Values that are not an exact multiple of the chosen unit are rounded down.
Values:bkbmbgbtbpb
timeenum
Sets the units for columns that contain a time duration.
If omitted, time duration values are rendered with a suffix such as ms, s, m or h, chosen such that the numeric value of the column is as small as possible whilst still being at least 1.0.
If given, time duration values are rendered as an integer with no suffix.
Values that are not an exact multiple of the chosen unit are rounded down.
dataset.sizeunionstringnullableThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityGenerally available since 8.11This functionality is generally available and ready for production usage.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
total size of dataset (including the cache for partially mounted indices)
One of:string
completion.sizestring
size of completion
pri.completion.sizestring
size of completion
fielddata.memory_sizestring
used fielddata cache
pri.fielddata.memory_sizestring
used fielddata cache
fielddata.evictionsstring
fielddata evictions
pri.fielddata.evictionsstring
fielddata evictions
query_cache.memory_sizestring
used query cache
pri.query_cache.memory_sizestring
used query cache
query_cache.evictionsstring
query cache evictions
pri.query_cache.evictionsstring
query cache evictions
request_cache.memory_sizestring
used request cache
pri.request_cache.memory_sizestring
used request cache
request_cache.evictionsstring
request cache evictions
pri.request_cache.evictionsstring
request cache evictions
request_cache.hit_countstring
request cache hit count
pri.request_cache.hit_countstring
request cache hit count
request_cache.miss_countstring
request cache miss count
pri.request_cache.miss_countstring
request cache miss count
flush.totalstring
number of flushes
pri.flush.totalstring
number of flushes
flush.total_timestring
time spent in flush
pri.flush.total_timestring
time spent in flush
get.currentstring
number of current get ops
pri.get.currentstring
number of current get ops
get.timestring
time spent in get
pri.get.timestring
time spent in get
get.totalstring
number of get ops
pri.get.totalstring
number of get ops
get.exists_timestring
time spent in successful gets
pri.get.exists_timestring
time spent in successful gets
get.exists_totalstring
number of successful gets
pri.get.exists_totalstring
number of successful gets
get.missing_timestring
time spent in failed gets
pri.get.missing_timestring
time spent in failed gets
get.missing_totalstring
number of failed gets
pri.get.missing_totalstring
number of failed gets
indexing.delete_currentstring
number of current deletions
pri.indexing.delete_currentstring
number of current deletions
indexing.delete_timestring
time spent in deletions
pri.indexing.delete_timestring
time spent in deletions
indexing.delete_totalstring
number of delete ops
pri.indexing.delete_totalstring
number of delete ops
indexing.index_currentstring
number of current indexing ops
pri.indexing.index_currentstring
number of current indexing ops
indexing.index_timestring
time spent in indexing
pri.indexing.index_timestring
time spent in indexing
indexing.index_totalstring
number of indexing ops
pri.indexing.index_totalstring
number of indexing ops
indexing.index_failedstring
number of failed indexing ops
pri.indexing.index_failedstring
number of failed indexing ops
merges.currentstring
number of current merges
pri.merges.currentstring
number of current merges
merges.current_docsstring
number of current merging docs
pri.merges.current_docsstring
number of current merging docs
merges.current_sizestring
size of current merges
pri.merges.current_sizestring
size of current merges
merges.totalstring
number of completed merge ops
pri.merges.totalstring
number of completed merge ops
merges.total_docsstring
docs merged
pri.merges.total_docsstring
docs merged
merges.total_sizestring
size merged
pri.merges.total_sizestring
size merged
merges.total_timestring
time spent in merges
pri.merges.total_timestring
time spent in merges
refresh.totalstring
total refreshes
pri.refresh.totalstring
total refreshes
refresh.timestring
time spent in refreshes
pri.refresh.timestring
time spent in refreshes
refresh.external_totalstring
total external refreshes
pri.refresh.external_totalstring
total external refreshes
refresh.external_timestring
time spent in external refreshes
pri.refresh.external_timestring
time spent in external refreshes
refresh.listenersstring
number of pending refresh listeners
pri.refresh.listenersstring
number of pending refresh listeners
search.fetch_currentstring
current fetch phase ops
pri.search.fetch_currentstring
current fetch phase ops
search.fetch_timestring
time spent in fetch phase
pri.search.fetch_timestring
time spent in fetch phase
search.fetch_totalstring
total fetch ops
pri.search.fetch_totalstring
total fetch ops
search.open_contextsstring
open search contexts
pri.search.open_contextsstring
open search contexts
search.query_currentstring
current query phase ops
pri.search.query_currentstring
current query phase ops
search.query_timestring
time spent in query phase
pri.search.query_timestring
time spent in query phase
search.query_totalstring
total query phase ops
pri.search.query_totalstring
total query phase ops
search.scroll_currentstring
open scroll contexts
pri.search.scroll_currentstring
open scroll contexts
search.scroll_timestring
time scroll contexts held open
pri.search.scroll_timestring
time scroll contexts held open
search.scroll_totalstring
completed scroll contexts
pri.search.scroll_totalstring
completed scroll contexts
segments.countstring
number of segments
pri.segments.countstring
number of segments
segments.memorystring
memory used by segments
pri.segments.memorystring
memory used by segments
segments.index_writer_memorystring
memory used by index writer
pri.segments.index_writer_memorystring
memory used by index writer
segments.version_map_memorystring
memory used by version map
pri.segments.version_map_memorystring
memory used by version map
segments.fixed_bitset_memorystring
memory used by fixed bit sets for nested object field types and export type filters for types referred in _parent fields
pri.segments.fixed_bitset_memorystring
memory used by fixed bit sets for nested object field types and export type filters for types referred in _parent fields