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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...