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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...