younifyd
Menu

Data streams stats (GET /_data_stream/{name}/_stats)

Data streams stats

GET/_data_stream/{name}/_stats

Use it in a workflow

  1. Add a step and choose the OpenSearch connector.
  2. Pick the Data streams stats (GET /_data_stream/{name}/_stats) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{dataStreamsStatsGetDataStreamNameStats.response.data}}.

Request

Path parameters

nameoneOfrequired

A 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 `*`.

Query parameters

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

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

_shardsobject
failedintegerrequired
successfulintegerrequired
totalintegerrequired
failuresarray<object>4 fields
skippedinteger
backing_indicesinteger (int32)

Total number of backing indexes for the selected data streams.

data_stream_countinteger (int32)

Total number of selected data streams.

data_streamsarray<object>

Contains statistics for the selected data streams.

backing_indicesinteger (int32)required

Current number of backing indexes for the data stream.

data_streamstringrequired

The name of a resource or configuration element.

maximum_timestampinteger (int64)required

The time unit for milliseconds.

store_sizestring

The unique identifier of a node.

store_size_bytesinteger (int64)required

The size in bytes.

total_store_sizestring

The unique identifier of a node.

total_store_size_bytesinteger (int64)

The size in bytes.

json
{
  "_shards": {
    "failed": 0,
    "successful": 0,
    "total": 0,
    "failures": [
      {
        "shard": 0,
        "reason": {
          "type": "string",
          "reason": "string",
          "stack_trace": "string",
          "caused_by": {},
          "root_cause": [
            {}
          ],
          "suppressed": [
            {}
          ],
          "header": {}
        },
        "index": "string",
        "node": "string"
      }
    ],
    "skipped": 0
  },
  "backing_indices": 0,
  "data_stream_count": 0,
  "data_streams": [
    {
      "backing_indices": 0,
      "data_stream": "string",
      "maximum_timestamp": 0,
      "store_size_bytes": 0,
      "store_size": "string"
    }
  ],
  "total_store_size_bytes": 0,
  "total_store_size": "string"
}

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