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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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