You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manage-data/lifecycle/index-lifecycle-management/tutorial-general-content-with-data-streams.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,32 @@ PUT _ingest/pipeline/ingest_time_1
72
72
73
73
## Create a lifecycle policy [manage-general-content-with-data-streams-policy]
74
74
75
-
In this example, the policy is configured to roll over when the shard size reaches 10 GB:
75
+
A lifecycle policy specifies the phases in the index lifecycle and the actions to perform in each phase. A lifecycle can have up to five phases: `hot`, `warm`, `cold`, `frozen`, and `delete`.
76
+
77
+
For example, you might define a policy named `indextods` that is configured to roll over when the shard size reaches 10 GB.
78
+
79
+
You can create the policy in {{kib}} or with the [create or update policy](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-put-lifecycle) API.
80
+
81
+
::::{tab-set}
82
+
:group: kibana-api
83
+
:::{tab-item} {{kib}}
84
+
:sync: kibana
85
+
To create the policy from {{kib}}, open the menu and go to **Stack Management > Index Lifecycle Policies**. Click **Create policy**.
86
+
87
+
In the **Hot phase**, by default, an ILM-managed index [rolls over](elasticsearch://reference/elasticsearch/index-lifecycle-actions/ilm-rollover.md) when either:
88
+
* It reaches 30 days of age.
89
+
* One or more primary shards reach 50 GB in size.
90
+
91
+
Disable **Use recommended defaults** to adjust these values and roll over when the primary shard reaches 10GB.
For more information about lifecycle phases and available actions, check[Create a lifecycle policy](configure-lifecycle-policy.md#ilm-create-policy).
125
+
For more information about lifecycle phases and available actions, refer to[Create a lifecycle policy](configure-lifecycle-policy.md#ilm-create-policy).
99
126
100
127
101
128
## Create an index template to apply the ingest pipeline and lifecycle policy [manage-general-content-with-data-streams-template]
0 commit comments