Getting Data In

Duplicate default value loading in dropdown - multiselect

Poojitha
Path Finder

Hi All,

I have a dropdown multi-select created using dashboard studio with default value set as "All".  This All is nothing but the static value set under menu configuration.

Label - "All"
Value - *

Query used : 

index=test sourcetype="billing_test" productcode="testcode"
 | fields account_id account_name cluster namespace pod cost
 | search account_id IN ($account_id$) AND clustername IN ($cluster$) AND account_name IN ($account_name$) | stats count by namespace

But when I click on this multi-select dropdown it is loading another "All" as value together with the default value I have set.

Example Screenshot : 

Poojitha_0-1738234333544.png

 

 

Full xml code

"visualizations"
: {},
"dataSources": {
"ds_1sGu0DN2": {
"type": "ds.search",
"options": {
"query": "index=test sourcetype=\"billing_test\" productcode=\"testcode\"| fields account_id account_name cluster namespace pod cost"
},
"name": "Base search"
},
"ds_fURg97Gu": {
"type": "ds.chain",
"options": {
"extend": "ds_1sGu0DN2",
"query": "| search account_id IN ($account_id$) AND eks_clustername IN ($cluster$) AND account_name IN ($account_name$)| stats count by namespace"
},
"name": "Namespacefilter"
}
},
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"latest": "$global_time.latest$",
"earliest": "$global_time.earliest$"
}
}
}
}
},
"inputs": {
"input_global_trp": {
"type": "input.timerange",
"options": {
"token": "global_time",
"defaultValue": "-7d@h,now"
},
"title": "Global Time Range"
},
"input_jHd4pV3L": {
"options": {
"items": [
{
"label": "All",
"value": "*"
}
],
"defaultValue": [
"All"
],
"token": "account_id"
},
"title": "Namespace",
"type": "input.multiselect",
"dataSources": {
"primary": "ds_fURg97Gu"
},
"context": {}
}
},
"layout": {
"options": {},
"globalInputs": [
"input_global_trp",
"input_jHd4pV3L"
],
"tabs": {
"items": [
{
"layoutId": "layout_1",
"label": "New tab"
}
]
},
"layoutDefinitions": {
"layout_1": {
"type": "grid",
"structure": [],
"options": {
"width": 1440,
"height": 960
}
}
}
},
"description": "",
"title": "Test Dashboard"
}


Please can anyone of you help me to know what is going wrong.

Thanks ,
NVP

0 Karma

Poojitha
Path Finder

@ITWhisperer  : I tried this as well, directly passing the value. Still same

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Make sure that you reopen the modified dashboard in a new tab/window otherwise existing token values may get carried forward

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Change your default value to be the value not the label

"defaultValue": "*",
0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...