This question is not how to do aggregation by multiple fields, which we can use sub aggregation.
If you know SQL, I can give you a perfect explanation:
SELECT SUM(SomeField1), MAX(SomeField2), MIN(SomeField3), AVG(SomeField4) FROM FooTable
GROUP BY Key1, Key2, Key3
Can we achieve that in Elasticsearch?
Thanks.