Reputation: 567
I have an Elasticsearch cluster on Kubernetes, I also have a curator that deletes indices older than 7 days.
I want to change the curator to work according to a certain condition:
If document key1=value1
delete these documents delete after 10 days, otherwise delete after 7 days.
Is there any way to do it?
Upvotes: 0
Views: 1179
Reputation: 217274
Curator is limited to index deletion as a whole and not at the document level.
What Curator does under the hood is call DELETE index-name
and there is not way to configure it to call the delete by query API which is what you're asking for.
Upvotes: 2