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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...