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.
the dropdown looks like this:
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>
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
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
Thanks. It worked