Metricbeat collects Windows information and Linux information

Whether the code uses different functions to collects information on Linux and Windows operating systems? Why the source does not see it for different operating systems call a different function?

If you solved my question, I would be grateful!

It calls different functions in some places, take a look to https://github.com/elastic/beats/tree/master/metricbeat/module/system, you will see system_linux.go, system_windows.go and system_other.go, the right file is chosen on compile time, when we package for each system

Your answer solve my question, thanks a lot.

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