# How to aggregation in Kibana dashboard

**URL:** <https://discuss.elastic.co/t/how-to-aggregation-in-kibana-dashboard/334637>\
**Category:** Kibana\
**Created:** [May 30, 2023, 5:57am UTC](https://discuss.elastic.co/t/how-to-aggregation-in-kibana-dashboard/334637 "2023-05-30T05:57:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanamasa](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@kanamasa](https://discuss.elastic.co/u/kanamasa)\
**Post date:** [May 30, 2023, 5:57am UTC](https://discuss.elastic.co/t/how-to-aggregation-in-kibana-dashboard/334637/1 "2023-05-30T05:57:04Z")

</div>

Hi,

Collect network traffic data in Elasticsearch.  
Please tell me how to aggregate in the Kibana dashboard.  
I tried to make it with table visualization, but I didn't know how to aggregate with multiple items.

[Data content]  
source, destination, number of bytes, number of packets

A,B,100,2  
C,D,50,1  
E,F,200,2  
A,B,500,3  
E,F,50,1

↓

[Dashboard]

1. Add the number of bytes and the number of packets for each combination of source and destination
2. Display the list in descending order of the number of packets

A,B,600,5  
E,F,250,3  
C,D,50,1

Elasticsearch 8.7.0 / Kibana 8.7.0

Regards,

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [June 22, 2023, 3:29pm UTC](https://discuss.elastic.co/t/how-to-aggregation-in-kibana-dashboard/334637/2 "2023-06-22T15:29:38Z")

</div>

How about using Lens visualization?

 ![Screenshot 2023-06-22 at 17.29.09](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c41a0d31e77e9e8b6621985f12476c15178f1086.jpeg)

---

<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:** [July 20, 2023, 3:30pm UTC](https://discuss.elastic.co/t/how-to-aggregation-in-kibana-dashboard/334637/3 "2023-07-20T15:30:35Z")

</div>

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