Skip to content

Commit 92b4a86

Browse files
committed
fix tag on migrate to datastream topic
1 parent 7ccc57b commit 92b4a86

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

manage-data/data-store/data-streams/set-up-data-stream.md

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,8 @@ To create a component template in {{kib}}:
118118
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).
119119
1. In the **Index Templates** tab, click **Create component template**.
120120

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.
122122

123-
::::{tab-set}
124-
125-
:::{tab-item} {{stack}}
126-
:sync: stack
127123
To create a component template for mappings, use this query:
128124

129125
```console
@@ -166,39 +162,6 @@ PUT _component_template/my-settings
166162
}
167163
```
168164

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-
::::
202165

203166
## Create an index template [create-index-template]
204167

@@ -267,13 +230,10 @@ For an example, see [Data stream privileges](../../../deploy-manage/users-roles/
267230

268231

269232
## Convert an index alias to a data stream [convert-index-alias-to-data-stream]
270-
```{applies_to}
271-
serverless: unavailable
272-
```
273233

274234
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).
275235

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.
277237

278238
```console
279239
POST _data_stream/_migrate/my-time-series-data

0 commit comments

Comments
 (0)