Splunk Search

2 queries in a line chart

athorat3
New Member

Query one 1> index=prod sourcetype="STORM" "received message from MQ" ">EXIGEN_QUOTE<" | timechart count
2>index=prod sourcetype="STORM" "received message from MQ" ">NETPOS<" | timechart count

I have two queries on the same source and want them to be displayed in one panel. Two lines in the line chart,one line for each query.
Can this be achieved.

Tags (2)
0 Karma

Raghav2384
Motivator

How about this

 index=prod sourcetype="STORM"  earliest=-24h "received message from MQ" "&gt;EXIGEN_QUOTE&lt;" | timechart span=15m count as Exigen|join type=outer [search index=prod sourcetype="STORM" earliest=-24h "received message from MQ" "&gt;NETPOS&lt;" | timechart span=15m count as Netpos]

Hope this helps!
Thanks,
Raghav

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