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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

&#x1f342; Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...