Get data stream lifecycle stats Generally available; Added in 8.12.0

GET /_lifecycle/stats

Get statistics about the data streams that are managed by a data stream lifecycle.

Required authorization

  • Cluster privileges: monitor

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data_stream_count number Required

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

    • data_streams array[object] Required

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

      Hide data_streams attributes Show data_streams attributes object
      • backing_indices_in_error number Required

        The count of the backing indices for the data stream.

      • backing_indices_in_total number Required

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

      • name string Required
    • last_run_duration_in_millis number

      Time unit for milliseconds

    • time_between_starts_in_millis number

      Time unit for milliseconds

GET _lifecycle/stats?human&pretty 
resp = client.indices.get_data_lifecycle_stats( human=True, pretty=True, )
const response = await client.indices.getDataLifecycleStats({ human: "true", pretty: "true", });
response = client.indices.get_data_lifecycle_stats( human: "true", pretty: "true" )
$resp = $client->indices()->getDataLifecycleStats([ "human" => "true", "pretty" => "true", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_lifecycle/stats?human&pretty"
Response examples (200)
A successful response for `GET _lifecycle/stats?human&pretty`
{ "last_run_duration_in_millis": 2, "last_run_duration": "2ms", "time_between_starts_in_millis": 9998, "time_between_starts": "9.99s", "data_streams_count": 2, "data_streams": [ { "name": "my-data-stream", "backing_indices_in_total": 2, "backing_indices_in_error": 0 }, { "name": "my-other-stream", "backing_indices_in_total": 2, "backing_indices_in_error": 1 } ] }