younifyd
Menu

Get data stream stats (GET /_data_stream/_stats)

Get data stream stats

GET/_data_stream/_stats

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get data stream stats (GET /_data_stream/_stats) action (under data stream).
  3. Fill in the fields below, then reference the result from later steps as {{getDataStreamStatsGetDataStreamStats.response.data}}.

Request

Query parameters

expand_wildcardsoneOf

Type of data stream that wildcard patterns can match. Supports comma-separated values, such as `open,hidden`.

Response

Returns 200 with an object. Read it in later steps with {{getDataStreamStatsGetDataStreamStats.response.data.<field>}}.

_shardsany

Contains information about shards that attempted to execute the request.

backing_indicesnumber

Total number of backing indices for the selected data streams.

data_stream_countnumber

Total number of selected data streams.

data_streamsarray<object>

Contains statistics for the selected data streams.

backing_indicesnumberrequired

Current number of backing indices for the data stream.

data_streamanyrequired

Name of the data stream.

maximum_timestampanyrequired

The data stream’s highest `@timestamp` value, converted to milliseconds since the Unix epoch. NOTE: This timestamp is provided as a best effort. The data stream may contain `@timestamp` values 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 `@timestamp` values.

store_sizeany

Total size of all shards for the data stream’s backing indices. This parameter is only returned if the `human` query parameter is `true`.

store_size_bytesnumberrequired

Total size, in bytes, of all shards for the data stream’s backing indices.

total_store_sizesany

Total size of all shards for the selected data streams. This property is included only if the `human` query parameter is `true`

total_store_size_bytesnumber

Total size, in bytes, of all shards for the selected data streams.

json
{
  "_shards": null,
  "backing_indices": 0,
  "data_stream_count": 0,
  "data_streams": [
    {
      "backing_indices": 0,
      "data_stream": null,
      "maximum_timestamp": null,
      "store_size_bytes": 0,
      "store_size": null
    }
  ],
  "total_store_size_bytes": 0,
  "total_store_sizes": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Get data stream stats (GET /_data_stream/_stats) — Elasticsearch — Documentation