To automate total size of similar indices

Hi team,

We are currently taking the data from index management to calculate the total size for each index based on ILM policies (including hot and warm nodes), manually.
We want to automate this task.
Is there any way in which we can receive the index-wise store.size through a mail or through a report ?


There is no automated way to do that, but you can run some scheduled API calls to the _cat/indices endpoint and parse the values from there.