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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...