# How to configure metric beat to collect OS & Ports Metric

**URL:** <https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 14, 2019, 6:18am UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768 "2019-06-14T06:18:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganesh2](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ganesh2](https://discuss.elastic.co/u/ganesh2)\
**Post date:** [June 14, 2019, 6:18am UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768/1 "2019-06-14T06:18:02Z")

</div>

Hi,  
I would like to collect OS type (Windows/Linux) from my VM's and also the list of ports/protocols its listening to. I tried adding the below in the system.yml under 'processors'

- add\_host\_metadata:  
netinfo.enabled: true

However, it does not show on the Kibana dashboard. Am i missing something?

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [June 14, 2019, 8:58am UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768/2 "2019-06-14T08:58:40Z")

</div>

Hi @ganesh2,

`add_host_metadata` will indeed add information about the host, including OS, but in order to see it you need to modify dashboards to include this information. What kind of visualization are you looking for?

Best regards

---

<div class="post-metadata">

**Author:** ![ganesh2](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ganesh2](https://discuss.elastic.co/u/ganesh2)\
**Post date:** [June 14, 2019, 9:24am UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768/3 "2019-06-14T09:24:57Z")

</div>

Hi @exekias,

Thank you for the reply. I am looking to use the "Data Table" visualization in Kibana. The data table will contain information about the configuration of the assets like CPU cores, RAM, storage, OS type, Protocols, Ports enabled etc..  
I am successful in displaying the CPU cores, RAM and storage. However other items i couldn't.

---

<div class="post-metadata">

**Author:** ![ganesh2](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ganesh2](https://discuss.elastic.co/u/ganesh2)\
**Post date:** [June 14, 2019, 11:23am UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768/4 "2019-06-14T11:23:05Z")

</div>

Hi @exekias,

I did some additional research. I was able to get that in the data table with the "Split Rows". Earlier it didn't display those. May be metricbeat agent took sometime to push those details?  
However, i have a question. I configured the add\_host\_metadata only in one of the client node running the metricbeat agent. It still gets the data of few other nodes as well.

How is it that adding the "add\_host\_metadata" to one agent on one node contribute to getting the other servers' details on to Kibana?

---

<div class="post-metadata">

**Author:** ![ganesh2](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ganesh2](https://discuss.elastic.co/u/ganesh2)\
**Post date:** [June 17, 2019, 9:23am UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768/5 "2019-06-17T09:23:11Z")

</div>

Any ideas mates, on how to get the port related metrics from metricbeat?

---

<div class="post-metadata">

**Author:** ![ganesh2](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@ganesh2](https://discuss.elastic.co/u/ganesh2)\
**Post date:** [June 24, 2019, 2:40pm UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768/6 "2019-06-24T14:40:51Z")

</div>

Hi @exekias - Would you be able to share some insights on how to get the "listening ports" ?

---

<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 22, 2019, 2:40pm UTC](https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768/7 "2019-07-22T14:40:53Z")

</div>

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