Ability to delete rollover indices based on criteria from all documents #35219
Labels
:Data Management/Indices APIs
APIs to create and manage indices and templates
>feature
Team:Data Management
Meta label for data/management team
When someone switches from daily indices to indices based on a rollover policy
(say, number of documents or index size), they lose the ability to easily expire
data based on the timestamp of when the data was written. For example, with the
following indices:
It's easier to delete all data before the 3rd of January by deleting the
test-2018-01-01
andtest-2018-01-02
indices.With the rollover API however, things will be slightly different (assuming no
date math in index names):
I think it would be nice if there were a way to say something like "delete
indices where all data is older than XYZ"
For example:
Which could examine the data in the
test-*
indices (either through the Lucenestats or by querying the data directly) to know the max/min of the
@timestamp
field. It could then know to delete the
test-000001
andtest-000002
indices,for example. Other indices could be ignored.
The text was updated successfully, but these errors were encountered: