# Table with Sum of Last values grouped by kubernetes.pod.uuid

**URL:** <https://discuss.elastic.co/t/table-with-sum-of-last-values-grouped-by-kubernetes-pod-uuid/286992>\
**Category:** Kibana\
**Created:** [October 18, 2021, 12:49pm UTC](https://discuss.elastic.co/t/table-with-sum-of-last-values-grouped-by-kubernetes-pod-uuid/286992 "2021-10-18T12:49:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![milanvdm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milanvdm/32/82732_2.png) [@milanvdm](https://discuss.elastic.co/u/milanvdm)\
**Post date:** [October 18, 2021, 12:49pm UTC](https://discuss.elastic.co/t/table-with-sum-of-last-values-grouped-by-kubernetes-pod-uuid/286992/1 "2021-10-18T12:49:26Z")

</div>

Ive got a counter on each running kubernetes pod:

{ name: foo, counter: 5, pod.uuid: 111, timestamp: 1 } and { name: foo, counter: 10, pod.uuid: 111, timestamp: 2 }

{ name: foo, counter: 5, pod.uuid: 222, timestamp: 1 }  
{ name: bar, counter: 5, pod.uuid: 222, timestamp: 1 }.

I want to have a table with:

foo |. 15  
bar |. 5

This boils down to retrieving the last-value grouped-by pod.uuid and name. These values, then need to be summed grouped by name.

I tried with TSVB, but this seems to be too limited to support this.

Could someone help me with suggesting the right approach? I feel that this counter example shouldnt be the hardest thing to visualize but Im struggling 🙂

---

<div class="post-metadata">

**Author:** ![ghudgins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghudgins/32/138532_2.png) [@ghudgins](https://discuss.elastic.co/u/ghudgins)\
**Post date:** [October 18, 2021, 4:52pm UTC](https://discuss.elastic.co/t/table-with-sum-of-last-values-grouped-by-kubernetes-pod-uuid/286992/2 "2021-10-18T16:52:34Z")

</div>

I think you might need to transform the data first and then do the sum - [Transform overview | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-overview.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 15, 2021, 4:53pm UTC](https://discuss.elastic.co/t/table-with-sum-of-last-values-grouped-by-kubernetes-pod-uuid/286992/3 "2021-11-15T16:53:26Z")

</div>

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