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
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Disable **Use recommended defaults** to adjust these values and roll over when t
98
98
99
99
:::{tab-item} API
100
100
:sync: api
101
-
101
+
Use the API to create a lifecyle policy:
102
102
```console
103
103
PUT _ilm/policy/indextods
104
104
{
@@ -127,7 +127,14 @@ For more information about lifecycle phases and available actions, refer to [Cre
127
127
128
128
## Create an index template to apply the ingest pipeline and lifecycle policy [manage-general-content-with-data-streams-template]
129
129
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:
131
138
132
139
```console
133
140
PUT _index_template/index_to_dot
@@ -169,6 +176,9 @@ PUT _index_template/index_to_dot
169
176
}
170
177
```
171
178
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
+
172
182
## Create a data stream [manage-general-content-with-data-streams-create-stream]
173
183
174
184
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