Dashboards & Visualizations

Combining a text box and dropdown search


I am trying to combine and give the option of either doing a text box search or a dropdown search from the same form. I can get the text search to work but the dropdown returns no data. I only want a single chart to be displayed. Is this possible or am I limited to either or in a form?

0 Karma


The dropdown works as I pulled it from an existing one that I created.

host=$Server$ counter="% Processor Time" | timechart avg(Value) by host
input type="text" token="Server" />


searchTemplate>host=$host$ counter="% Processor Time" | timechart avg(Value) by host
input type="dropdown" token="host"


       <populatingSearch fieldForValue="host" fieldForLabel="host">
        <![CDATA[ counter="% Processor Time" | stats count by host]]>
  input type="time"
  <default>Last 24hrs</default>  



        title>CPU Usage

       <option name="charting.chart">column</option>
    <option name="charting.primaryAxisTitle.text">Time</option>
    <option name="charting.secondaryAxisTitle.text">CPU %</option>
    <option name="charting.legend.placement">right</option>


0 Karma


You can have both. Can you show us the XML? Perhaps there is a typo in the XML for your dropdown.

0 Karma

Path Finder

How exactly do you combine the dropdown and the text box so that the user can use whichever one he prefers? I have a simple dropdown, how do I add textbox functionality to a dropdown?

0 Karma
Get Updates on the Splunk Community!

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...

What’s New in Splunk Cloud Platform 9.1.2308?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2308! Analysts can ...