Get data stream lifecycles
- GET /_data_stream/{name}/_lifecycle
Get the data stream lifecycle configuration of one or more data streams.
About data stream lifecyclePath Parameters
-
nameDataStreamName | DataStreamNamerequired -
Comma-separated list of data streams to limit the request. Supports wildcards (
*). To target all data streams, omit this parameter or use*or_all.
Query Parameters
-
expand_wildcardsstring ExpandWildcards · default: open Type of data stream that wildcard patterns can match. Supports comma-separated values, such as
open,hidden.Supported values include:
all: Match any data stream or index, including hidden ones.open: Match open, non-hidden indices. Also matches any non-hidden data stream.closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.hidden: Match hidden data streams and hidden indices. Must be combined withopen,closed, orboth.none: Wildcard expressions are not accepted.
-
Values:
allopenclosedhiddennone -
include_defaultsboolean · default: false If
true, return all default settings in the response.-
master_timeoutstring Duration · default: 30s 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.
Response
-
data_streamsDataStreamWithLifecyclerequired -
namestringrequired -
lifecycleDataStreamLifecycleWithRollover -
data_retentionstring Duration -
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_retentionstring Duration -
The least amount of time data should be kept by elasticsearch.
-
retention_determined_byRetentionSource -
Configuration source that can influence the retention of a data stream.
-
Values:
data_stream_configurationdefault_global_retentionmax_global_retentiondefault_failures_retention -
downsamplingDownsamplingRound -
The list of downsampling rounds to execute as part of this downsampling configuration
-
afterstring Durationrequired -
The duration since rollover when this downsampling round should execute
-
fixed_intervalstringrequired -
The downsample interval.
-
downsampling_methodSamplingMethod -
The method used to downsample the data. There are two options
aggregateandlast_value. It requiresdownsamplingto be defined. Defaults toaggregate. -
Values:
aggregatelast_value -
enabledboolean · 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. -
rolloverDataStreamLifecycleRolloverConditions -
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 paraminclude_defaultsis set to true. The contents of this field are subject to change. -
min_agestring Duration -
max_agestring -
min_docsnumber -
max_docsnumber -
min_sizenumber | string ByteSize -
max_sizenumber | string ByteSize -
min_primary_shard_sizenumber | string ByteSize -
max_primary_shard_sizenumber | string ByteSize -
min_primary_shard_docsnumber -
max_primary_shard_docsnumber -
global_retentionGlobalRetentionrequired -
max_retentionstring Duration -
default_retentionstring Duration