Time series index settings
Stack
Elastic Cloud Serverless projects restrict the available Elasticsearch settings to a supported subset, identified with a Serverless badge next to the setting name. For a complete list of available index settings, refer to the Serverless index settings list.
Backing indices in a time series data stream (TSDS) support the following index settings.
index.modeServerless- (Static, string) Mode for the index. Valid values are
time_seriesandnull(no mode). Defaults tonull.
index.time_series.start_timeServerless- (Static, string) Earliest
@timestampvalue (inclusive) accepted by the index. Only indices with anindex.modeoftime_seriessupport this setting. For more information, refer to Time-bound indices.
index.time_series.end_timeServerless- (Dynamic, string) Latest
@timestampvalue (exclusive) accepted by the index. Only indices with anindex.modeoftime_seriessupport this setting. For more information, refer to Time-bound indices.
index.look_ahead_timeServerless- (Static, time units) Interval used to calculate the
index.time_series.end_timefor a TSDS’s write index. Defaults to30m(30 minutes). Accepts1m(one minute) to2h(two hours). Only indices with anindex.modeoftime_seriessupport this setting. For more information, refer to Look-ahead time. Additionally this setting can not be less thantime_series.poll_intervalcluster setting.
Increasing the look_ahead_time will also increase the amount of time Index lifecycle management waits before being able to proceed with executing the actions that expect the index to not receive any writes anymore. For more information, refer to Time-bound indices.
index.look_back_timeServerless- (Static, time units) Interval used to calculate the
index.time_series.start_timefor a TSDS’s first backing index when a tsdb data stream is created. Defaults to2h(2 hours). Accepts1m(one minute) to7d(seven days). Only indices with anindex.modeoftime_seriessupport this setting. For more information, refer to Look-back time. -
index.routing_pathServerless -
(Static, string or array of strings) Time series dimension fields used to route documents in a TSDS to index shards. Supports wildcards (
*). Only indices with anindex.modeoftime_seriessupport this setting. - Defaults value:
-
Indices that are not part of a time series data stream have no default value and require the routing path to be defined explicitly. If a time series data stream is used that is eligible for the
index.dimensions-based routing (seeindex.dimensions_tsid_strategy_enabled), theindex.routing_pathwill be empty. For time series data streams where theindex.dimensions-based routing does not apply, this defaults to the list of dimension fields with atime_series_dimensionvalue oftrueas defined in your component and index templates. - Manually setting a value disables the
index.dimensions-based routing strategy (seeindex.dimensions_tsid_strategy_enabled). For more information, refer to Dimension-based routing.
index.dimensions_tsid_strategy_enabledStack Serverless-
(Static, boolean) Controls if the
_tsidcan be created using theindex.dimensionsindex setting. This is an internal setting that will be automatically populated and updated for eligible time series data streams and is not user-configurable. This strategy offers an improved ingestion performance that avoids processing dimensions multiple times for the purposes of shard routing and creating the_tsid. When used,index.routing_pathwill not be set and shard routing uses the full_tsid, which can help to avoid shard hot-spotting. -
If set to
false, orindex.routing_pathis configured manually, or in case the index isn't eligible (see below), shard routing will be based on theindex.routing_pathinstead. -
Defaults to
true. - This optimized
_tsidcreation strategy is only available for data streams and if there are no dynamic templates that settime_series_dimension: true. Trying to add such a dynamic template to existing backing indices after the fact will fail the update mapping request and you will need to roll over the data stream instead.
index.mapping.dimension_fields.limit-
(Dynamic, integer) Maximum number of time series dimensions for the index. Defaults to
32768.