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!

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, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...