Splunk Search

How to show two search results in one dashboard panel

muthvin
New Member

HI all
I have two search which yield the table like this below:

Module1 Module2

Name1 1.2 2.2
Name2 1.5 3.2
Name3 1.6 4.2
Name4 1.2 5.2
Name5 1.5 6.2
Name6 1.6 7.2

My queries are like: index=_internal module="module1" | stats count by sourcetype and
index=_internal module="module2" | stats count by sourcetype

I want to merge these queries and create a dashboard panel to yield results as in table and line graph with two lines in it.
It will be great if someone help me here!

Thanks.

Tags (2)
0 Karma
1 Solution

jluo_splunk
Splunk Employee
Splunk Employee

Hi muthvin, try this:

index=_internal module="module1" OR module="module2" | chart count over module by sourcetype

View solution in original post

0 Karma

jluo_splunk
Splunk Employee
Splunk Employee

Hi muthvin, try this:

index=_internal module="module1" OR module="module2" | chart count over module by sourcetype
0 Karma

somesoni2
SplunkTrust
SplunkTrust

I guess the chart command should say this to get sourcetype as rows and module as columns

... | chart count over sourcetype by module 
0 Karma

muthvin
New Member

Thanks guys in my case i reverted module by sourcetype and that solves my problem..

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