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!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...