Get the status for a data stream lifecycle

Auth

Get information about an index or data stream's current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.

About data stream lifecycle

Required privileges

Index privileges manage_data_stream_lifecycle view_index_metadata

Path parameters

index union string | string[] required

Comma-separated list of index names to explain

Query parameters

include_defaults boolean · default: false

Indicates if the API should return the default values the system uses for the index's lifecycle

master_timeout string · default: 30s

The period to wait for a connection to the master node.

Response

application/json
indices map string to object required
<string> object
index string required
managed_by_lifecycle boolean required
index_creation_date_millis number
time_since_index_creation string
rollover_date_millis number
time_since_rollover string
lifecycle object
data_retention string

If defined, every document added to this data stream will be stored at least for this time frame. Any time after this duration the document could be deleted. When empty, every document in this data stream will be stored indefinitely.

effective_retention string

The least amount of time data should be kept by elasticsearch.

retention_determined_by enum

Configuration source that can influence the retention of a data stream.

Values: data_stream_configuration default_global_retention max_global_retention default_failures_retention
downsampling object[]

The list of downsampling rounds to execute as part of this downsampling configuration

after string required

The duration since rollover when this downsampling round should execute

fixed_interval string required

The downsample interval.

downsampling_method enum

The method used to downsample the data. There are two options aggregate and last_value. It requires downsampling to be defined. Defaults to aggregate.

Values: aggregate last_value
enabled boolean · default: true

If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle that's disabled (enabled: false) will have no effect on the data stream.

rollover object

The conditions which will trigger the rollover of a backing index as configured by the cluster setting cluster.lifecycle.default.rollover. This property is an implementation detail and it will only be retrieved when the query param include_defaults is set to true. The contents of this field are subject to change.

min_age string
max_age string
min_docs number
max_docs number
min_size number | string
max_size number | string
min_primary_shard_size number | string
max_primary_shard_size number | string
min_primary_shard_docs number
max_primary_shard_docs number
generation_time string
error string
frozen_transition_status string
unmanaged_reason string