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/data-store/data-streams/set-up-data-stream.md
+2-42Lines changed: 2 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,12 +118,8 @@ To create a component template in {{kib}}:
118
118
1. Go to the **Index Management** page using the navigation menu or the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
119
119
1. In the **Index Templates** tab, click **Create component template**.
120
120
121
-
You can also use the [create component template](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template) API for {{stack}} or the [create or update a component template](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-cluster-put-component-template) API for {{serverless-full}}.
121
+
You can also use the [create component template](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template) API.
122
122
123
-
::::{tab-set}
124
-
125
-
:::{tab-item} {{stack}}
126
-
:sync: stack
127
123
To create a component template for mappings, use this query:
128
124
129
125
```console
@@ -166,39 +162,6 @@ PUT _component_template/my-settings
166
162
}
167
163
```
168
164
169
-
:::
170
-
171
-
:::{tab-item} {{serverless-short}}
172
-
:sync: serverless
173
-
To create a component template, use this query:
174
-
175
-
```console
176
-
PUT _component_template/template_1
177
-
{
178
-
"template": {
179
-
"settings": {
180
-
"number_of_shards": 1
181
-
},
182
-
"mappings": {
183
-
"_source": {
184
-
"enabled": false
185
-
},
186
-
"properties": {
187
-
"host_name": {
188
-
"type": "keyword"
189
-
},
190
-
"created_at": {
191
-
"type": "date",
192
-
"format": "EEE MMM dd HH:mm:ss Z yyyy"
193
-
}
194
-
}
195
-
}
196
-
}
197
-
}
198
-
```
199
-
200
-
:::
201
-
::::
202
165
203
166
## Create an index template [create-index-template]
204
167
@@ -267,13 +230,10 @@ For an example, see [Data stream privileges](../../../deploy-manage/users-roles/
267
230
268
231
269
232
## Convert an index alias to a data stream [convert-index-alias-to-data-stream]
270
-
```{applies_to}
271
-
serverless: unavailable
272
-
```
273
233
274
234
Prior to {{es}} 7.9, you’d typically use an [index alias with a write index](../../lifecycle/index-lifecycle-management/tutorial-time-series-without-data-streams.md) to manage time series data. Data streams replace this functionality, require less maintenance, and automatically integrate with [data tiers](../../lifecycle/data-tiers.md).
275
235
276
-
To convert an index alias with a write index to a data stream with the same name, use the [migrate to data stream API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream). During conversion, the alias’s indices become hidden backing indices for the stream. The alias’s write index becomes the stream’s write index. The stream still requires a matching index template with data stream enabled.
236
+
To convert an index alias with a write index to a data stream with the same name, use the [convert an index alias to a data stream](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream) API for {{stack}} or the [convert an index alias to a data stream](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-migrate-to-data-stream) API for {{serverless-full}}. During conversion, the alias’s indices become hidden backing indices for the stream. The alias’s write index becomes the stream’s write index. The stream still requires a matching index template with data stream enabled.
0 commit comments