Dashboards & Visualizations

Why is Dropdown not working with base search?

POR160893
Builder

Hi,

I have a dropdown with 3 options. When I select one of the option, the value should be in the token and passed to a base search. However, on the panel that uses this base search, the input never appears to be understood:

POR160893_0-1647940174558.png

 

Here is the XML code for the dropdown and base search and panel:

POR160893_2-1647940409269.png

 

 

Can you please help?


Many thanks,
Patrick

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @POR160893,

generally when you use a baseSearch, you have to put at the end of the base search all the fields you want to use in the panels, but I suppose that in your case the problem is tha you're not using the base search, so you should try to use $dropdown_TOK$ in the searches withou using base search, in other words:

<row>
  <panel>
    <title>
    <chart>
      <search>
        <query>
        $dropdown_TOK$
        | timechart span=1h count(src) AS "TOTAL"
        </query>
      </search>
    </chart>
  </panel>
</row>

Ciao.

Giuseppe

POR160893
Builder

Perfect, this now works 😀.

However, now, one of the 3 options appears to be generating the following error upon looking the chart:

POR160893_0-1647943315006.png



Do I need to add something else onto the XML to supress this error message? 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @POR160893,

this is a different problem, you have too many results that cannot be displayed in the chart,

you have to reduce them or change visualization.

If you search in Community there are many answer about solving this topic.

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

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 ...