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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...