Dashboards & Visualizations
Highlighted

Can the number of multiselect inputs display different dashboard panels?

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
Highlighted

Re: Can the number of multiselect inputs display different dashboard panels?

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
Highlighted

Re: Can the number of multiselect inputs display different dashboard panels?

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
Highlighted

Re: Can the number of multiselect inputs display different dashboard panels?

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
Highlighted

Re: Can the number of multiselect inputs display different dashboard panels?

Communicator

Thanks for the reply

0 Karma