Skip to content

Commit

Permalink
Recommend index templates when using ILM Rollover (elastic#35922)
Browse files Browse the repository at this point in the history
Because rollover does not propogate the ILM policy in use, add a note to
the docs recommending the use of index templates when using rollover.
  • Loading branch information
gwbrown authored Nov 29, 2018
1 parent 9ef5420 commit d567f89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/ilm/set-up-lifecycle-policy.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ To set the policy for an index there are two options:
1. Apply the policy to an index template and bootstrap creating the first index
2. Apply the policy to a new index in a create index request

[[applying-policy-to-template]]
=== Applying a policy to an index template

beta[]
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/ilm/using-policies-rollover.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ met. Because the criteria are checked periodically, the index might grow
slightly beyond the specified threshold. To control how often the critera are
checked, specify the `indices.lifecycle.poll_interval` cluster setting.

IMPORTANT: New indices created via rollover will not automatically inherit the
policy used by the old index, and will not use any policy by default. Therefore,
it is highly recommended to apply the policy via
<<applying-policy-to-template,index template>>, including a Rollover alias
setting, for your indices which specifies the policy you wish to use for each
new index.

The rollover action takes the following parameters:

.`rollover` Action Parameters
Expand Down

0 comments on commit d567f89

Please sign in to comment.