Splunk Search

Creating a line graph that displays two sets of data

jmac131
Engager

I have two searches that give me two seperate line graphs. I would like to combine these two searches so that they appear on the one graph.

These are the two searches I currently run.
sourcetype=emc-sp sp="SP A" array="Array_xxx" | timechart span=2m avg(utilization)
sourcetype=emc-sp sp="SP B" array="Array_xxx" | timechart span=2m avg(utilization)

Im no sure if this has been answered previously but I couldn't find an answer that would help.

Cheers

Tags (2)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

Could this be something like it?

sourcetype=emc-sp sp="SP A" OR sp="SP B" array="Array_xxx" | timechart span=2m avg(utilization) by sp

Hope this helps,

Kristian

View solution in original post

kristian_kolb
Ultra Champion

Could this be something like it?

sourcetype=emc-sp sp="SP A" OR sp="SP B" array="Array_xxx" | timechart span=2m avg(utilization) by sp

Hope this helps,

Kristian

jmac131
Engager

Thanks, its my first day of this and that worked exactly how I needed it too. I had played with the OR but didnt know about the 'by'
Cheers.

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...