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!

Out of the Box to Up And Running - Streamlined Observability for Your Cloud ...

  Tech Talk Streamlined Observability for Your Cloud Environment Register    Out of the Box to Up And Running ...

Splunk Smartness with Brandon Sternfield | Episode 3

Hello and welcome to another episode of "Splunk Smartness," the interview series where we explore the power of ...

Monitoring Postgres with OpenTelemetry

Behind every business-critical application, you’ll find databases. These behind-the-scenes stores power ...