Delete data in index without deleting the data

Hello,

Could you please share me steps on how to delete the index data without deleting the index itself ??

If yes, then is it possible to delete the data based on timeline ?

For ex : Currently I have data from the last few months in the index.
I want to configure in such a way that at any given point of time, I would like to have data of the last one month in the index.
Any data older than one month can be permanently deleted.

Any suggestions on this would be helpful ?

Hi,

You should take a look at ILM documentation in general and more specifically to Rollover feature.
https://www.elastic.co/guide/en/elasticsearch/reference/7.8/ilm-rollover.html

Regards.

Dominique

1 Like

++ to ILM.
You are better off changing your indexing structure than going down this path.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.