Dashboards & Visualizations

Dashboards & views: Conditional panels

ramesh
Engager

Can I have a view that has some panels that are shown based on a condition? The condition could be the result of a search or a user selection.

Tags (3)
0 Karma

sideview
SplunkTrust
SplunkTrust

There's a core module called "ConditionSwitcher", although I think it may be marked as a prototype. It takes a param that basically gets evaluated as a Javascript statement. So you can put things in it like '(context.get("someToken")=="all")'. Based on how that evaluates at runtime, it'll show different subbranches of XML config.

If you're using Sideview Utils 2.0, there's a much more powerful mechanism though, involving the Switcher module (new in 2.0), and depending on your use case, also the ResultsValueSetter module. Email me if you want to know more. (Sideview Utils 2.0 isn't a free product anymore so I won't spell it out here or you'll think I'm pitching you.) Cheers.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...