Dashboards & Visualizations

Splunk works in search but not in dashboard dropdown

super_edition
Path Finder

Hello Everyone,

My below splunk query works fine in normal splunk search and it returns expected results:

 

index="my_index" 
| stats count by kubernetes_cluster | table kubernetes_cluster | sort kubernetes_cluster

 

However when the same query when I have it in dashboard's dropdown it is not returning that data.

Search on Change is unchecked.

super_edition_0-1728296935819.png

the dropdown looks like this:

super_edition_0-1728297151041.png

source view:

 <input type="dropdown" token="regions" searchWhenChanged="false">
      <label>region</label>
      <fieldForLabel>regions</fieldForLabel>
      <fieldForValue>regions</fieldForValue>
      <search>
        <query>index="my_index" 
| stats count by kubernetes_cluster | table kubernetes_cluster | sort kubernetes_cluster</query>
        <earliest>0</earliest>
        <latest></latest>
      </search>
    </input>

 

 

Labels (1)
Tags (4)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @super_edition ,

the only field present in your search is "kubernetes_cluster" but the field in Label and value is "region".

use the same field.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @super_edition ,

the only field present in your search is "kubernetes_cluster" but the field in Label and value is "region".

use the same field.

Ciao.

Giuseppe

super_edition
Path Finder

Thanks. It worked

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...