younifyd
Menu

Get data stream lifecycle stats

Get data stream lifecycle stats

GET/_lifecycle/stats

Use it in a workflow

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

Fields

baseUrlstring

The API host this action calls. Override to point at a different environment.

Default "/"

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

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

data_stream_countnumber

The count of data streams currently being managed by the data stream lifecycle.

data_streamsarray<object>

Information about the data streams that are managed by the data stream lifecycle.

backing_indices_in_errornumberrequired

The count of the backing indices for the data stream.

backing_indices_in_totalnumberrequired

The count of the backing indices for the data stream that have encountered an error.

nameanyrequired

The name of the data stream.

last_run_duration_in_millisany

The duration of the last data stream lifecycle execution.

time_between_starts_in_millisany

The time that passed between the start of the last two data stream lifecycle executions. This value should amount approximately to `data_streams.lifecycle.poll_interval`.

json
{
  "data_stream_count": 0,
  "data_streams": [
    {
      "backing_indices_in_error": 0,
      "backing_indices_in_total": 0,
      "name": null
    }
  ],
  "last_run_duration_in_millis": null,
  "time_between_starts_in_millis": null
}

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

Get data stream lifecycle stats — Elasticsearch — Documentation