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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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