diff --git a/manage-data/_snippets/create-lifecycle-policy.md b/manage-data/_snippets/create-lifecycle-policy.md index db49fd6a3c..51e07892dc 100644 --- a/manage-data/_snippets/create-lifecycle-policy.md +++ b/manage-data/_snippets/create-lifecycle-policy.md @@ -18,6 +18,9 @@ You can create the policy in {{kib}} or with the [create or update policy](https :sync: kibana To create the policy from {{kib}}, open the menu and go to **Stack Management > Index Lifecycle Policies**. Click **Create policy**. +By default, only the hot index lifecycle phase is enabled. Enable each additional lifecycle phase that you'd like. + + :::{image} /manage-data/images/elasticsearch-reference-create-policy.png :alt: Create policy page :screenshot: @@ -60,6 +63,8 @@ PUT _ilm/policy/timeseries_policy ::: :::: +Note that for each phase after the hot phase, you have the option to move the data into the next phase after a certain duration of time. This duration is calculated from the time of the index rollover and not from the time the index is created. + :::{tip} For more details about default {{ilm-init}} policy settings, refer to [Create a lifecycle policy](/manage-data/lifecycle/index-lifecycle-management/configure-lifecycle-policy.md#ilm-create-policy). ::: \ No newline at end of file diff --git a/manage-data/images/elasticsearch-reference-tutorial-ilm-datastreams-tutorial-create-index-template.png b/manage-data/images/elasticsearch-reference-tutorial-ilm-datastreams-tutorial-create-index-template.png new file mode 100644 index 0000000000..31890e0006 Binary files /dev/null and b/manage-data/images/elasticsearch-reference-tutorial-ilm-datastreams-tutorial-create-index-template.png differ diff --git a/manage-data/lifecycle/index-lifecycle-management/tutorial-time-series-with-data-streams.md b/manage-data/lifecycle/index-lifecycle-management/tutorial-time-series-with-data-streams.md index c7b8926e99..51a0150a6d 100644 --- a/manage-data/lifecycle/index-lifecycle-management/tutorial-time-series-with-data-streams.md +++ b/manage-data/lifecycle/index-lifecycle-management/tutorial-time-series-with-data-streams.md @@ -30,10 +30,7 @@ When you enable {{ilm}} for {{beats}} or the {{ls}} {{es}} output plugin, lifecy To set up a data stream, first create an index template to specify the lifecycle policy. Because the template is for a data stream, it must also include a `data_stream` definition. For example, you might create a template named `timeseries_template` and use it for a future data stream named `timeseries`. - -To enable {{ilm-init}} to manage the data stream, the template configures one {{ilm-init}} setting: - -* `index.lifecycle.name` specifies the name of the lifecycle policy that you want to apply to the data stream. +To configure {{ilm-init}} to manage the data stream, you specify the name of the lifecycle policy that you want to apply to the data stream with the `index.lifecycle.name` setting. Use the {{kib}} **Create template** wizard to add a template or the [Create or update index template](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template) API to add a template and apply the lifecycle policy to indices matching the template. @@ -41,11 +38,13 @@ Use the {{kib}} **Create template** wizard to add a template or the [Create or u :group: kibana-api :::{tab-item} {{kib}} :sync: kibana -To add an index template to a cluster using the wizard, go to **Stack Management > Index Management**. In the **Index Templates** tab, click **Create template**. +To add an index template to a cluster using the wizard, go to **Stack Management > Index Management**. In the **Index Templates** tab, click **Create template** and follow the instructions. ![Create template page](/manage-data/images/elasticsearch-reference-create-index-template.png "") -This wizard invokes the create or update index template API to create the index template with the options you specify. +You specify the name of the lifecycle policy that you want to apply to the data stream on the **Index settings** page. + +![Create template page](/manage-data/images/elasticsearch-reference-tutorial-ilm-datastreams-tutorial-create-index-template.png "") :::{tip} To learn about which index template options you can specify, refer to [Create an index template to apply the lifecycle policy](/manage-data/lifecycle/index-lifecycle-management/configure-lifecycle-policy.md#apply-policy-template).