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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...