Splunk Search

could not create search - No Search query provided

Jasmine
Path Finder

i am using below to load colur in drop downlist . Data loading propertly. but it always shows - Could not create search - No Search query provided

 

<input type="dropdown" token="color" depends="$color_dropdown_token$" searchWhenChanged="false">
      <label>Color</label>
      <choice value="*">All</choice>
      <choice value="Green">Green</choice>
      <choice value="Orange">Orange</choice>
      <choice value="Red">Red</choice>
      <initialValue>*</initialValue>
      <search>
        <query/>
        <earliest>$Time.earliest$</earliest>
        <latest>$Time.latest$</latest>
      </search>
    </input>

 

 

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try without the search

<input type="dropdown" token="color" depends="$color_dropdown_token$" searchWhenChanged="false">
      <label>Color</label>
      <choice value="*">All</choice>
      <choice value="Green">Green</choice>
      <choice value="Orange">Orange</choice>
      <choice value="Red">Red</choice>
      <initialValue>*</initialValue>
    </input>
0 Karma

Jasmine
Path Finder

i want to filter based on Timeframe. so i cant remove that

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The timeframe you showed (which I removed) applies to the search to dynamically populate the dropdown. Since you don't have a search to populate the dropdown (as shown by your error message), you don't need the timeframe here. You can still use the time in other parts of your dashboard.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...