Add index.look_back_time setting for tsdb data streams #98518
Merged
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This change adds a
index.look_back_time
index setting that sets theindex.time_series.start_time
setting for the first backing index when a data stream is created.This allows accepting data that is older for initial indexing without changing the
index.look_ahead_time
setting. This setting also controls theindex.time_series.end_time
setting and would affect rollovers as well.The default for the
index.look_back_time
is2h
, which means documents with@timestamp
up to 2 hours after creation of the data stream are allowed to be indexed. This is the same as is without this change, becauseindex.look_ahead_time
is used to setindex.time_series.start_time
of the first backing index.Closes #98463