Get data stream stats
- GET /_data_stream/{name}/_stats
- GET /_data_stream/_stats
Get statistics for one or more data streams.
Required authorization
- Index privileges monitor
Query parameters
-
expand_wildcardsstring · 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
application/json
-
data_streamsobjectrequired -
Contains statistics for the selected data streams.
-
maximum_timestampnumberrequired -
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.