@ganesh2 (Ganesh) posted a new topic, subject "How to configure metric beat to collect OS & Ports Metric". It read:

   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?

After which, @exekias (Carlos Pérez Aradros) added

    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

To which @ganesh2 (Ganesh) replied

    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.

@ganesh2 (Ganesh) replied

    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?

Then @ganesh2 (Ganesh) said

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

After which, @ganesh2 (Ganesh) added

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

After which, @system (system) added

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


{'source': 'discourse', 'url': 'https://discuss.elastic.co/t/how-to-configure-metric-beat-to-collect-os-ports-metric/185768', 'title': 'How to configure metric beat to collect OS & Ports Metric', 'views': 373, 'has_accepted_answer': False, 'word_count': 285, 'like_count': 0, 'reply_count': 4, 'participant_count': 2, 'posts': 7, 'tags': 'metricbeat', 'author': '@ganesh2 (Ganesh)', 'participants': '@ganesh2 (Ganesh), @exekias (Carlos Pérez Aradros), @system (system)', 'image_url': [None], 'created_at': '2019-06-14T06:18:02.176Z', 'last_posted_at': '2019-07-22T14:40:53.428Z'}