# Aggregations for dynamic key value pairs

**URL:** <https://discuss.elastic.co/t/aggregations-for-dynamic-key-value-pairs/200083>\
**Category:** Elasticsearch\
**Created:** [September 18, 2019, 7:51pm UTC](https://discuss.elastic.co/t/aggregations-for-dynamic-key-value-pairs/200083 "2019-09-18T19:51:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bkdavis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bkdavis/32/54439_2.png) [@bkdavis](https://discuss.elastic.co/u/bkdavis)\
**Post date:** [September 20, 2019, 6:47pm UTC](https://discuss.elastic.co/t/aggregations-for-dynamic-key-value-pairs/200083/2 "2019-09-20T18:47:20Z")

</div>

I think I figured out the best approach by following recommendations in this post..

[https://discuss.elastic.co/t/aggregate-over-multiple-keys-in-the-document-without-knowing-the-key-details/158238](https://discuss.elastic.co/t/aggregate-over-multiple-keys-in-the-document-without-knowing-the-key-details/158238)

Thank you!

---

_[View the full topic](https://discuss.elastic.co/t/aggregations-for-dynamic-key-value-pairs/200083)._
