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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...