Index rollover with date and a counter

Hi,
I have a index which is more than 500GB per day(index-2019.05.27) . I want to make a rollover for every 4 hr so it will a create a new index
index-2019.05.27-000001
index-2019.05.27-000002
index-2019.05.27-000003
index-2019.05.27-000004

And next day its should start with
index-2019.05.28-000001

Please let me know how to achieve this .

I do not think this is possible as the counter is not reset per day. Why do you require a date in the index name at all? Why not just use the sequence number?

Hi Chris ,
Thanks for the reply .
The requirement is , I have to take a snapshot of everyday index and store in S3 using s3 repository plugin .
The stored logs will be restored back by the user related to respective date .

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