How to create a policy that maintains the total amount of log documents within interval

Sorry, just realize that the question is a duplicate (even though I tried to find it in advance). But I still need a solution. I have found an old feature request from opendistro-for-elasticsearch repo called “Transition based on cluster free available space · Issue #260”, are there any similar for OpenSearch Index Management?

Related questions: