Dashboards & Visualizations

Can the number of multiselect inputs display different dashboard panels?

shreyasathavale
Communicator

If I have selected 1 option in multiselect box, then it should display 1 panel. If i have 2 values selected in multiselect box as input, then it should display 2 panels. Is there any way to achieve it ?
Queries remain the same

0 Karma

jkat54
SplunkTrust
SplunkTrust

You changed your question :-P. So now the answer is no but yes maybe.

You could make it display 2 panels all the time but only populate the 2nd if more than one was selected. Would be tricky though...

0 Karma

jkat54
SplunkTrust
SplunkTrust

Panel 2 search

 ...| eval panel2bool=if(match($token$,".*(OR|AND).*"),"1","0") | search pane2bool=1| ...

If your token had OR or AND (as typical multi select tokens should) then panel 2 could populate. Otherwise, panel 2 wouldn't populate.

0 Karma

shreyasathavale
Communicator

Thanks for the reply

0 Karma

jkat54
SplunkTrust
SplunkTrust

Yes.

Use token1 for multi select 1 and token2 for multi select 2. Then use $token1$ in panel 1 and $token2$ in panel 2.

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