Get statistics for one or more data streams. ##Required authorization
- Index privileges:
monitor
GET
/_data_stream/_stats
Console
GET /_data_stream/my-data-stream/_stats?human=true
curl \
--request GET 'http://api.example.com/_data_stream/_stats'
Response examples (200)
A successful response for retrieving statistics for a data stream.
{
"_shards": {
"total": 10,
"successful": 5,
"failed": 0
},
"data_stream_count": 2,
"backing_indices": 5,
"total_store_size": "7kb",
"total_store_size_bytes": 7268,
"data_streams": [
{
"data_stream": "my-data-stream",
"backing_indices": 3,
"store_size": "3.7kb",
"store_size_bytes": 3772,
"maximum_timestamp": 1607512028000
},
{
"data_stream": "my-data-stream-two",
"backing_indices": 2,
"store_size": "3.4kb",
"store_size_bytes": 3496,
"maximum_timestamp": 1607425567000
}
]
}