This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.
index.lifecycle.name setting can be set in an index template so that it
is automatically applied to indexes matching the templates index pattern:
This template will be applied to all indexes which have a name starting
The template will set the policy to be used to
Now that a policy exists and is used in an index template we can create an initial index which will be managed by our policy:
We can now write data to the
test-alias alias. Because we have a rollover
action defined in our policy, when the index grows larger than 25GB index lifecycle management will
create a new index and roll the alias over to use the new index automatically.