Get data stream stats
- GET /_data_stream/{name}/_stats
- GET /_data_stream/_stats
Path Parameters
-
nameIndexName | IndexNameoptional -
Comma-separated list of data streams used to limit the request. Wildcard expressions (
*) are supported. To target all data streams in a cluster, omit this parameter or use*.Leave it out to use
/_data_stream/_stats.
Query Parameters
-
expand_wildcardsstring ExpandWildcards · default: open,closed Type of data stream that wildcard patterns can match. Supports comma-separated values, such as
open,hidden.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
Response
-
_shardsShardStatisticsrequired -
Contains information about shards that attempted to execute the request.
-
failednumber uintrequired -
The number of shards the operation or search attempted to run on but failed.
-
successfulnumber uintrequired -
The number of shards the operation or search succeeded on.
-
totalnumber uintrequired -
The number of shards the operation or search will run on overall.
-
failuresShardFailure -
indexstring IndexName -
nodestring -
reasonErrorCauserequired -
typestringrequired -
The type of error
-
reasonstringnullable -
A human-readable explanation of the error, in English.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byErrorCause -
root_causeErrorCause -
suppressedErrorCause -
shardnumber -
statusstring -
primaryboolean -
skippednumber uint -
backing_indicesnumberrequired -
Total number of backing indices for the selected data streams.
-
data_stream_countnumberrequired -
Total number of selected data streams.
-
data_streamsDataStreamsStatsItemrequired -
Contains statistics for the selected data streams.
-
backing_indicesnumberrequired -
Current number of backing indices for the data stream.
-
data_streamstring Namerequired -
Name of the data stream.
-
maximum_timestampEpochTimeUnitMillisrequired -
The data stream’s highest
@timestampvalue, converted to milliseconds since the Unix epoch. NOTE: This timestamp is provided as a best effort. The data stream may contain@timestampvalues higher than this if one or more of the following conditions are met: The stream contains closed backing indices; Backing indices with a lower generation contain higher@timestampvalues. -
store_sizenumber | string ByteSize -
Total size of all shards for the data stream’s backing indices. This parameter is only returned if the
humanquery parameter istrue. -
store_size_bytesnumberrequired -
Total size, in bytes, of all shards for the data stream’s backing indices.
-
total_store_sizesnumber | string ByteSize -
Total size of all shards for the selected data streams. This property is included only if the
humanquery parameter istrue -
total_store_size_bytesnumberrequired -
Total size, in bytes, of all shards for the selected data streams.