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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...