Skip to content

Commit 707b379

Browse files
committed
Adding more info about the index template creation requirements
1 parent 753df18 commit 707b379

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

manage-data/lifecycle/index-lifecycle-management/tutorial-general-content-with-data-streams.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Disable **Use recommended defaults** to adjust these values and roll over when t
9898

9999
:::{tab-item} API
100100
:sync: api
101-
101+
Use the API to create a lifecyle policy:
102102
```console
103103
PUT _ilm/policy/indextods
104104
{
@@ -127,7 +127,14 @@ For more information about lifecycle phases and available actions, refer to [Cre
127127

128128
## Create an index template to apply the ingest pipeline and lifecycle policy [manage-general-content-with-data-streams-template]
129129

130-
Create an index template that uses the created ingest pipeline and lifecycle policy:
130+
To use the created lifecycle policy, you configure an index template that uses it.
131+
When creating the index template, specify the following details:
132+
* the name of the lifecycle policy, which in our example is `indextods`
133+
* the ingest pipeline that enriches the data by adding the `@timestamp` field, which in our example is `ingest_time_1`
134+
* that the template is data stream enabled by including the `data_stream` definition
135+
* the index pattern, which ensures that this template will be applied to matching indices and in our example is `movetods`
136+
137+
Use the [create index template API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template) to create an index template that uses the created ingest pipeline and lifecycle policy:
131138

132139
```console
133140
PUT _index_template/index_to_dot
@@ -169,6 +176,9 @@ PUT _index_template/index_to_dot
169176
}
170177
```
171178

179+
To create an index template in Kibana, open the main menu and go to **Stack Management > Index Management**. In the **Index Templates** view, click **Create template**.
180+
Refer to [Manage index templates](docs-content/manage-data/data-store/index-basics.md#index-management-manage-index-templates) for more information about configuring templates in Kibana.
181+
172182
## Create a data stream [manage-general-content-with-data-streams-create-stream]
173183

174184
Create a data stream using the [_data_stream API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-data-stream):

0 commit comments

Comments
 (0)