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!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...