Output of aggregation query to another index in elastic

I have an index in elastic like below. Is there an optimum way to store the aggregation of the below data into another index. I use logstash to index the original data.

Original Data


Aggregated data


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