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!

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