It would be great to have a feature wherein while creating a request, one can also specify its lifespan after which it gets deleted automatically. Right now, one has to manually go and delete indices
Do you mean a expiry date for a document ?
We used to have such a "TTL" (time to live) setting but it is not efficient to delete individual documents this way and far more efficient to drop entire indices. Consequently we removed this feature to steer people towards managing time-based indices for typical logging scenarios. You can still achieve the same effects using a custom polling job and running a delete-by-query request with the appropriate time stamp but be advised this is much less efficient.
I was talking about TTL for indices and not docs. Yes, TTL for each docs would not be ideal
Until such time as that feature is added, there is Elasticsearch Curator.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.