ilm-settings.asciidoc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [role="xpack"]
  2. [[ilm-settings]]
  3. === {ilm-cap} settings in {es}
  4. [subs="attributes"]
  5. ++++
  6. <titleabbrev>{ilm-cap} settings</titleabbrev>
  7. ++++
  8. These are the settings available for configuring <<index-lifecycle-management, {ilm}>> ({ilm-init}).
  9. ==== Cluster level settings
  10. `xpack.ilm.enabled`::
  11. (<<static-cluster-setting,Static>>, Boolean)
  12. deprecated:[7.8.0,Basic License features are always enabled] +
  13. This deprecated setting has no effect and will be removed in Elasticsearch 8.0.
  14. `indices.lifecycle.history_index_enabled`::
  15. (<<dynamic-cluster-setting,Dynamic>>, Boolean)
  16. Whether ILM's history index is enabled. If enabled, ILM will record the
  17. history of actions taken as part of ILM policies to the `ilm-history-*`
  18. indices. Defaults to `true`.
  19. [[indices-lifecycle-poll-interval]]
  20. `indices.lifecycle.poll_interval`::
  21. (<<dynamic-cluster-setting,Dynamic>>, <<time-units, time unit value>>)
  22. How often {ilm} checks for indices that meet policy criteria. Defaults to `10m`.
  23. [[indices-lifecycle-rollover-only-if-has-documents]]
  24. `indices.lifecycle.rollover.only_if_has_documents`::
  25. (<<dynamic-cluster-setting,Dynamic>>, Boolean)
  26. Whether ILM will only roll over non-empty indices. If enabled, ILM will only roll over indices
  27. as long as they contain at least one document. Defaults to `true`.
  28. ==== Index level settings
  29. These index-level {ilm-init} settings are typically configured through index
  30. templates. For more information, see <<ilm-gs-create-policy>>.
  31. `index.lifecycle.indexing_complete`::
  32. (<<indices-update-settings,Dynamic>>, Boolean)
  33. Indicates whether or not the index has been rolled over.
  34. Automatically set to `true` when {ilm-init} completes the rollover action.
  35. You can explicitly set it to <<skipping-rollover, skip rollover>>.
  36. Defaults to `false`.
  37. [[index-lifecycle-name]]
  38. `index.lifecycle.name`::
  39. (<<indices-update-settings, Dynamic>>, string)
  40. The name of the policy to use to manage the index. For information about how
  41. {es} applies policy changes, see <<update-lifecycle-policy>>.
  42. If you are restoring an index from snapshot that was previously managed by {ilm},
  43. you can override this setting to null during the restore operation to disable
  44. further management of the index. See also <<index-lifecycle-rollover-alias>>.
  45. [[index-lifecycle-origination-date]]
  46. `index.lifecycle.origination_date`::
  47. (<<indices-update-settings,Dynamic>>, long)
  48. If specified, this is the timestamp used to calculate the index age for its phase transitions.
  49. Use this setting if you create a new index that contains old data and
  50. want to use the original creation date to calculate the index age.
  51. Specified as a Unix epoch value in milliseconds.
  52. [[index-lifecycle-parse-origination-date]]
  53. `index.lifecycle.parse_origination_date`::
  54. (<<indices-update-settings,Dynamic>>, Boolean)
  55. Set to `true` to parse the origination date from the index name.
  56. This origination date is used to calculate the index age for its phase transitions.
  57. The index name must match the pattern `^.*-{date_format}-\\d+`,
  58. where the `date_format` is `yyyy.MM.dd` and the trailing digits are optional.
  59. An index that was rolled over would normally match the full format,
  60. for example `logs-2016.10.31-000002`).
  61. If the index name doesn't match the pattern, index creation fails.
  62. [[index-lifecycle-step-wait-time-threshold]]
  63. `index.lifecycle.step.wait_time_threshold`::
  64. (<<indices-update-settings,Dynamic>>, <<time-units,time value>>)
  65. Time to wait for the cluster to resolve allocation issues during an {ilm-init}
  66. <<ilm-shrink,`shrink`>> action. Must be greater than `1h` (1 hour). Defaults to
  67. `12h` (12 hours). See <<ilm-shrink-shard-allocation>>.
  68. [[index-lifecycle-rollover-alias]]
  69. `index.lifecycle.rollover_alias`::
  70. (<<indices-update-settings,Dynamic>>, string)
  71. The index alias to update when the index rolls over. Specify when using a
  72. policy that contains a rollover action. When the index rolls over, the alias is
  73. updated to reflect that the index is no longer the write index. For more
  74. information about rolling indices, see <<index-rollover, Rollover>>.
  75. If you are restoring an index from snapshot that was previously managed by {ilm},
  76. you can override this setting to null during the restore operation to disable
  77. further management of future indices. See also <<index-lifecycle-name>>.