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!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...