elasticsearch/docs/reference/ilm
Andrei Dan d5bd2bb77e
[ILM] Add date setting to calculate index age (#46561)
* [ILM] Add date setting to calculate index age

Add the `index.lifecycle.origination_date` to allow users to configure a
custom date that'll be used to calculate the index age for the phase
transmissions (as opposed to the default index creation date).

This could be useful for users to create an index with an "older"
origination date when indexing old data.

Relates to #42449.

* [ILM] Don't override creation date on policy init

The initial approach we took was to override the lifecycle creation date
if the `index.lifecycle.origination_date` setting was set. This had the
disadvantage of the user not being able to update the `origination_date`
anymore once set.

This commit changes the way we makes use of the
`index.lifecycle.origination_date` setting by checking its value when
we calculate the index age (ie. at "read time") and, in case it's not
set, default to the index creation date.

* Make origination date setting index scope dynamic

* Document orignation date setting in ilm settings
2019-09-12 17:57:14 +01:00
..
apis [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00
error-handling.asciidoc [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00
getting-started-ilm.asciidoc [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00
getting-started-slm.asciidoc [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00
ilm-and-snapshots.asciidoc Remove "beta" modifier from ILM documentation (#37326) 2019-01-10 13:38:14 -07:00
ilm-with-existing-indices.asciidoc [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00
index.asciidoc Add guide for using ILM with existing indices (#43667) 2019-08-05 13:39:09 -06:00
policy-definitions.asciidoc [ILM] Add date setting to calculate index age (#46561) 2019-09-12 17:57:14 +01:00
set-up-lifecycle-policy.asciidoc [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00
start-stop-ilm.asciidoc Fix ILM start and stop doc tests (#46559) 2019-09-11 09:54:02 -06:00
update-lifecycle-policy.asciidoc [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00
using-policies-rollover.asciidoc [DOCS] [2 of 5] Change // CONSOLE comments to [source,console] (#46353) 2019-09-09 13:13:41 -04:00