Splunk Search

How to create a single chart showing % Processor Time and % User Time by host?

CSMounsey01
New Member

I'm trying to create a single chart showing % Processor Time and % User Time by host

My example so far:

host="pvawbdap01.ifdsgroup.co.uk" index="bluedoor_registry_perfmon"  source="Perfmon:Processor" | stats avg("% Processor Time") as hRs, avg("% User Time") as ssns by _time,source | eval s1=("% Processor Time % User Time") | makemv s1 | mvexpand s1 | eval yval=case(s1==("% Processor Time"),hRs,s1==("% User Time"),ssns) | eval series=source+":"+s1 | xyseries _time,series,yval
0 Karma

lguinn2
Legend

Would this work?

 host="pvawbdap01.ifdsgroup.co.uk" index="bluedoor_registry_perfmon"
      source="Perfmon:Processor"
 | stats avg("% Processor Time") as hRs, avg("% User Time") as ssns by source
0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...