Yeah I read though the caveats and only performance applies. But back to the problem I can totally use that command with some addition flags but what I am looking for is this:

(1) max of 8 indices per day

(2) delete indices older then X days (This may be a requirement plus is makes the task easier)

Use Case 1:

Say I have so far 3-5 days worth of data totaling to about 20 GB and my basic system has a limit or 22 GB. If the total indices size reach 21 GB I want to delete the oldest day of indices. Right now what I can work out is I will run 2 commands

(1) delete indices older then X days

(2) if any indices is greater then 2 GB (evenly distributing memory to each index) delete that are also older than X days

This will ensure that I will (1) will not go over limit and (2) delete indices that will not be looked at because they are X day old. Great problem solved.

But I want to optimize this process where if total index sizes reaches 21 GB I delete the last indexed day. The reason I don't want to just delete indices that go beyond 2 GB is because they all correlate if I delete 1 of the indices on August 9, 1015 then all other indices that day are irrelevant. Thanks.

Mike

Mike