# How to show the values for destination port?

**URL:** <https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196>\
**Category:** Kibana\
**Created:** [September 14, 2021, 2:26pm UTC](https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196 "2021-09-14T14:26:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wooden\_tree](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@Wooden\_tree](https://discuss.elastic.co/u/Wooden_tree)\
**Post date:** [September 14, 2021, 2:26pm UTC](https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196/1 "2021-09-14T14:26:33Z")

</div>

Hello,  
We examine our Firewall logs related to a vulnerability scanner and we’d like to have a stats on ports it uses (destination.port) to adjust the Firewall configuration. So we’d like to have a table showing us all the port in use. Something like this screenshot but in table mode:  
 ![1](https://us1.discourse-cdn.com/elastic/original/3X/0/6/06b460ce31a091f72f4a3a84cbf0e4cce2427d85.png)  
However, when we try to build a metric, we can’t find a way to show the destination port’s values. We have Average, Sum, Maximum but not values.  
 ![2](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d6366f94e6d485dc0d770cef0854545fa38ced60.png)  
Do you know the way we could achieve our goal?  
Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [September 14, 2021, 4:09pm UTC](https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196/2 "2021-09-14T16:09:36Z")

</div>

Hi @Wooden_tree ,

> So we’d like to have a table showing us all the port in use. Something like this screenshot but in table mode:

You can build a table for that very easily in Lens, but there's a limit on the number of values for the `Top values` function of 1000:

 ![Screenshot 2021-09-14 at 18.06.14](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2fba7f8e28f6e94348f9c9f3b10605d7fa9cf5ec.png)

You cannot have percentages, but ordering by `Count` should be enough to get something close to the field popover - note `Other` will always be at the bottom.

---

<div class="post-metadata">

**Author:** ![Wooden\_tree](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@Wooden\_tree](https://discuss.elastic.co/u/Wooden_tree)\
**Post date:** [September 20, 2021, 1:38pm UTC](https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196/3 "2021-09-20T13:38:24Z")

</div>

Hi @Marco_Liberati,

That works great.  
Thanks for the help!

---

<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:** [October 18, 2021, 1:38pm UTC](https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196/4 "2021-10-18T13:38:39Z")

</div>

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