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

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...