younifyd
Menu

Get data streams (GET /_data_stream)

Get data streams

GET/_data_stream

Use it in a workflow

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

Request

Query parameters

expand_wildcardsoneOf

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

include_defaultsboolean

If true, returns all relevant default configurations for the index template.

master_timeoutoneOf

Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

verboseboolean

Whether the maximum timestamp for each data stream should be calculated and returned.

Response

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

data_streamsarray<object>
_metaany

Custom metadata for the stream, copied from the `_meta` object of the stream’s matching index template. If empty, the response omits this property.

allow_custom_routingboolean

If `true`, the data stream allows custom routing on write request.

failure_storeany

Information about failure store backing indices

generationnumberrequired

Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.

hiddenbooleanrequired

If `true`, the data stream is hidden.

ilm_policyany

Name of the current ILM lifecycle policy in the stream’s matching index template. This lifecycle policy is set in the `index.lifecycle.name` setting. If the template does not include a lifecycle policy, this property is not included in the response. NOTE: A data stream’s backing indices may be assigned different lifecycle policies. To retrieve the lifecycle policy for individual backing indices, use the get index settings API.

next_generation_managed_byanyrequired

Name of the lifecycle system that'll manage the next generation of the data stream.

prefer_ilmbooleanrequired

Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream.

indicesarray<object>required6 fields

Array of objects containing information about the data stream’s backing indices. The last item in this array contains information about the stream’s current write index.

lifecycleany

Contains the configuration for the data stream lifecycle of this data stream.

nameanyrequired

Name of the data stream.

replicatedboolean

If `true`, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.

rollover_on_writebooleanrequired

If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.

settingsanyrequired

The settings specific to this data stream that will take precedence over the settings in the matching index template.

mappingsany

The mappings specific to this data stream that will take precedence over the mappings in the matching index template.

statusanyrequired

Health status of the data stream. This health status is based on the state of the primary and replica shards of the stream’s backing indices.

systemboolean

If `true`, the data stream is created and managed by an Elastic stack component and cannot be modified through normal user interaction.

templateanyrequired

Name of the index template used to create the data stream’s backing indices. The template’s index pattern must match the name of this data stream.

timestamp_fieldanyrequired

Information about the `@timestamp` field in the data stream.

index_modeany

The index mode for the data stream that will be used for newly created backing indices.

json
{
  "data_streams": [
    {
      "generation": 0,
      "hidden": false,
      "next_generation_managed_by": null,
      "prefer_ilm": false,
      "indices": [
        {
          "index_name": null,
          "index_uuid": null,
          "ilm_policy": null,
          "managed_by": null,
          "prefer_ilm": false,
          "index_mode": null
        }
      ],
      "name": null,
      "rollover_on_write": false,
      "settings": null,
      "status": null,
      "template": null,
      "timestamp_field": null,
      "_meta": null
    }
  ]
}

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