AuthThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityGenerally available since 8.11This functionality is generally available and ready for production usage.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Update the data stream lifecycle of the specified data streams.
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.
afterstringrequired
The duration since rollover when this downsampling round should execute
fixed_intervalstringrequired
The downsample interval.
downsampling_methodenum
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: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.