Dashboards & Visualizations

Remove " Search produced no results" error

matstap
Communicator

I have a dynamically populated dropdown. Depending on other input values, no values should be populated. However, when this is the case, this error message is displayed below the dropdown, "Search produced no results". How can I stop this error message from displaying?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You need to make sure the search finds something. The appendpipe command should do it.

 ... | appendpipe [ stats count | eval dropdownField="N/A" | where count==0 | fields - count ]
---
If this reply helps you, Karma would be appreciated.
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, ...