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

Labels (1)
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!

Buttercup Games: Further Dashboarding Techniques (Part 2)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Index This | What is the next number in the series? 7,645 5,764 4,576…

February 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Buttercup Games: Further Dashboarding Techniques

Hello! We are excited to kick off a new series of blogs from SplunkTrust member ITWhisperer, who demonstrates ...