Dashboards & Visualizations

How to hide Tables from a Dashboard if there are no results

ashidhingra
Path Finder

hide Tables from a Dashboard if there are no results. is there a generic command. I have around 900 tables in a dashboard and i refuse to set 900 different tokens.

Labels (7)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @ashidhingra,

see in the Splunk Dashboard Examples App (https://splunkbase.splunk.com/app/1603/) there's a sample to do what you need: "Null Search Swapper".

Ciao.

Giuseppe

ITWhisperer
SplunkTrust
SplunkTrust

If some of your tables use the same search, you might be able to use a common token, but there is no generic command to do this.

You could consider writing a script to edit the source to place all the code necessary, or just copy/paste the code in and go through and edit each one (or set up a script to do this).

Another possibility might be writing some javascript to do this, but I wouldn't know where to start for that I am afraid.

Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...