Update data stream lifecycles
- PUT /_data_stream/{name}/_lifecycle
Update the data stream lifecycle of the specified data streams.
About data stream lifecycleQuery parameters
-
expand_wildcardsstring · 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
Request body
-
data_retentionstring -
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.
-
downsamplingobject -
The downsampling configuration to execute for the managed backing index after rollover.