Getting Data In

Question about perfmon search

sieutruc
Contributor

Hello,

As we know that in Splunk Window application, we can use the search:
source=WMI:Memory OR source=WMI:CPUTime OR source=WMI:LocalPhysicalDisk | timechart avg(PercentProcessorTime) as "CPU",avg(PercentCommittedBytesInUse) as "Memory",avg(PercentDiskTime) as "Disk"
to get performance snapshot by using WMI performance data format
But with performance data got from perfmon, the structure is different, and all have the same field called "Value" for each counter of specific instance. For ex:

source="Perfmon:CPUTime"
collection=CPUTime
object=Processor
counter="% Processor Time"
instance=_Total
Value=33.697347893915754

source="Perfmon:Memory"
collection=Memory
object=Memory
counter="% Committed Bytes In Use"
Value=34.116872992745115

Can you suggest me how to do a query that gets the same result as the search above but on perfmon data ?

Tags (1)
1 Solution

MarioM
Motivator

I guess you could try something like this:

source="Perfmon:CPUTime" collection=CPUTime object=Processor counter="% Processor Time" instance=_Total | eval PercentProcessorTime=Value | append [search source="Perfmon:Memory" collection=Memory object=Memory counter="% Committed Bytes In Use" | eval PercentCommittedBytesInUse=Value] | timechart avg(PercentProcessorTime) as "CPU",avg(PercentCommittedBytesInUse) as "Memory"

View solution in original post

MarioM
Motivator

I guess you could try something like this:

source="Perfmon:CPUTime" collection=CPUTime object=Processor counter="% Processor Time" instance=_Total | eval PercentProcessorTime=Value | append [search source="Perfmon:Memory" collection=Memory object=Memory counter="% Committed Bytes In Use" | eval PercentCommittedBytesInUse=Value] | timechart avg(PercentProcessorTime) as "CPU",avg(PercentCommittedBytesInUse) as "Memory"
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...