Knowledge Management

In need of a straighforward method for getting the name and version of the OS of a host

crunchit
Engager

Hello,
I have a search which I run for monitoring memory usage across different platforms. This has been working well for me for quite some time, however, I have recently added Windows Server 2012 machines to my environment, and, due to memory combining, my search does not work properly for those machines. I would like to exclude these machines from the search in a simple way, e.g., by adding a search term like host_os_name!="windows_server_2012*", but have thus far been unable to find if / where splunk logs information about the host beyond just the platform.
Can anyone recommend a straightforward method for gathering this information? Thanks.

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You could query your forwarders' REST API for the /server/info endpoint and use the os_version field to build a lookup or tag list that map host to version.

Not quite straightforward of course, as far as I know you'll only get OS name, architecture, and Splunk version from _internal metrics.

As a small chance, take a a look at the system info output in _internal on bootup of a forwarder. That might contain version info as well, I don't have the systems to verify right now.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You could query your forwarders' REST API for the /server/info endpoint and use the os_version field to build a lookup or tag list that map host to version.

Not quite straightforward of course, as far as I know you'll only get OS name, architecture, and Splunk version from _internal metrics.

As a small chance, take a a look at the system info output in _internal on bootup of a forwarder. That might contain version info as well, I don't have the systems to verify right now.

Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...