Get index information
- GET /_cat/indices/{index}
- GET /_cat/indices
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.
- Index privileges:
monitor - Cluster privileges:
monitor
Path Parameters
-
indexIndexName | IndexNameoptional -
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.Leave it out to use
/_cat/indices.
Query Parameters
-
expand_wildcardsstring ExpandWildcards · default: all The type of index that wildcard patterns can match.
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 withopen,closed, orboth.none: Wildcard expressions are not accepted.
-
Values:
allopenclosedhiddennone -
healthHealthStatus The health status used to limit returned indices. By default, the response includes indices of any health status.
Supported values include:
green(orGREEN): All shards are assigned.yellow(orYELLOW): 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(orRED): One or more primary shards are unassigned, so some data is unavailable. This can occur briefly during cluster startup as primary shards are assigned.unknownunavailable
-
Values:
greenGREENyellowYELLOWredREDunknownunavailable -
include_unloaded_segmentsboolean · default: false 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_timeoutstring Duration · default: 30s Period to wait for a connection to the master node.
-
hNames List of columns to appear in the response. Supports simple wildcards.
-
sNames List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting
:ascor:descas a suffix to the column name.
Response
Response Type: IndicesRecord
-
healthstring -
current health status
-
statusstring -
open/close status
-
indexstring -
index name
-
uuidstring -
index uuid
-
pristring -
number of primary shards
-
repstring -
number of replica shards
-
docs.countstringnullable -
available docs
-
docs.deletedstringnullable -
deleted docs
-
creation.datestring -
index creation date (millisecond value)
-
creation.date.stringstring -
index creation date (as string)
-
store.sizestringnullable -
store size of primaries & replicas
-
pri.store.sizestringnullable -
store size of primaries
-
dataset.sizestringnullable -
total size of dataset (including the cache for partially mounted indices)
-
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
-
warmer.currentstring -
current warmer ops
-
pri.warmer.currentstring -
current warmer ops
-
warmer.totalstring -
total warmer ops
-
pri.warmer.totalstring -
total warmer ops
-
warmer.total_timestring -
time spent in warmers
-
pri.warmer.total_timestring -
time spent in warmers
-
suggest.currentstring -
number of current suggest ops
-
pri.suggest.currentstring -
number of current suggest ops
-
suggest.timestring -
time spend in suggest
-
pri.suggest.timestring -
time spend in suggest
-
suggest.totalstring -
number of suggest ops
-
pri.suggest.totalstring -
number of suggest ops
-
memory.totalstring -
total used memory
-
pri.memory.totalstring -
total user memory
-
search.throttledstring -
indicates if the index is search throttled
-
bulk.total_operationsstring -
number of bulk shard ops
-
pri.bulk.total_operationsstring -
number of bulk shard ops
-
bulk.total_timestring -
time spend in shard bulk
-
pri.bulk.total_timestring -
time spend in shard bulk
-
bulk.total_size_in_bytesstring -
total size in bytes of shard bulk
-
pri.bulk.total_size_in_bytesstring -
total size in bytes of shard bulk
-
bulk.avg_timestring -
average time spend in shard bulk
-
pri.bulk.avg_timestring -
average time spend in shard bulk
-
bulk.avg_size_in_bytesstring -
average size in bytes of shard bulk
-
pri.bulk.avg_size_in_bytesstring -
average size in bytes of shard bulk