Splunk Search

Multi Line Graph from Multiple Hosts

howelsmovingcas
New Member

I am looking to create a simple multiline graph from the following logs:

Hostname=host1 cpu_percentage=X etc..
Hostname=host2 cpu_percentage=Y etc..
Hostname=host3 cpu_percentage=Z etc..

Basically looking for a timechart of cpu_percentage by Hostname over time. I have tried searching for a simple example similar to this but cannot seem to find anything. I tried using this:

search>sourcetype=performance_logs | table _time,Hostname,cpu_percentage

Is what I am looking to do possible or will I need to overlay each graph separately?

Thank you for your time,
HMC

0 Karma

gkanapathy
Splunk Employee
Splunk Employee
sourcetype=performance_logs | timechart avg(cpu_percentage) by Hostname
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...