Change the size of an index that has already been created

Hello,
I'm pretty a newbie with ES and I've created an index that's too big for my purposes, therefore I'd like to limit it's growth to a more reasonable value (which also doesn't make my storage collapse).

I've already fixed the template but I'm not able to find a way to change the max size of the index itself.

Do you have any suggestion?

Thanks!

Welcome!

There is no way to limit the size of an index and reject any new coming index requests once the size has been reached.
But there is the ILM feature that could probably help you solving the use case you want to solve.

Hello David,

thank you for the suggestion, I'll take a look and try to fix the issue with the ILM.

Kind regards