Getting Data In

How to get WMI Perf counters that are in ms

COH
New Member

I have a WMI Perf counter query that always returns zero in Splunk as the values are always < 1 second. It looks like the values get rounded off in Splunk.

Example WMI.conf:

[WMI:LocalPhysicalDisk]

disabled = 0

server = localhost

wql = SELECT AvgDisksecPerTransfer FROM Win32_PerfFormattedData_PerfDisk_PhysicalDisk

How do I get Splunk to recognize WMI Perf counter values that are in ms (< 1 second)?

Tags (1)
0 Karma

igor
Splunk Employee
Splunk Employee

Splunk does not actually round off any values. It returns the values as they come from the CIM. In the particular example, "AvgDisksecPerTransfer" is a uint32 type, and that one does not contain fractions. See http://msdn.microsoft.com/en-us/library/aa394262%28VS.85%29.aspx for the definition of the "Win32_PerfFormattedData_PerfDisk_PhysicalDisk" class.

Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...