Skip to content

Commit 5ed3afd

Browse files
authored
Add a note about enabling time series index mode via a component template (#110050) (#110120)
Closes #109149
1 parent 207c371 commit 5ed3afd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/reference/data-streams/set-up-tsds.asciidoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,20 @@ POST metrics-weather_sensors-dev/_rollover
279279
// TEST[setup:tsds]
280280
// TEST[teardown:tsds_cleanup]
281281

282+
[discrete]
283+
[[set-up-component-templates]]
284+
==== A note about component templates and index.mode setting
285+
286+
Configuring a TSDS via an index template that uses component templates is a bit more complicated.
287+
Typically with component templates mappings and settings get scattered across multiple component templates.
288+
When configuring the `index.mode` setting in a component template, the `index.routing_path` setting needs to
289+
be defined in the same component template. Additionally the fields mentioned in the `index.routing_path`
290+
also need to be defined in the same component template with the `time_series_dimension` attribute enabled.
291+
292+
The reasons for this is that each component template needs to be valid on its own and the time series index mode
293+
requires the `index.routing_path` setting. When configuring the `index.mode` setting in an index template, the `index.routing_path` setting is configured automatically. It is derived from
294+
the field mappings with `time_series_dimension` attribute enabled.
295+
282296
[discrete]
283297
[[set-up-tsds-whats-next]]
284298
==== What's next?

0 commit comments

Comments
 (0)