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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

New This Month - Observability Updates Give Extended Visibility and Improve User ...

This month is a collection of special news! From Magic Quadrant updates to AppDynamics integrations to ...

Intro to Splunk Synthetic Monitoring

In our last post, we mentioned that the 3 key pieces of observability – metrics, logs, and traces – provide ...