Create an index that includes aggs

Can I create an index with data obtained with bucket aggregation from another index?

For example:

old_index: fox; dog; dog; fox; fox;
new_index: fox, 3; dog, 2;

Is it possible to do this for some indexes within ILM?
And can I delete old_index immediately when creating new_index?

Take a look at Rolling up historical data | Elasticsearch Guide [7.17] | Elastic

Thanks! This is what I need.

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