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!

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...