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!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...