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!

Enterprise Security Content Updates (ESCU) - New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 3 releases of new content via the Enterprise ...

Thought Leaders are Validating Your Hard Work and Training Rigor

As a Splunk enthusiast and member of the Splunk Community, you are one of thousands who recognize the value of ...

.conf23 Registration is Now Open!

Time to toss the .conf-etti &#x1f389; —  .conf23 registration is open!   Join us in Las Vegas July 17-20 for ...