Getting Data In

Duplicate default value loading in dropdown - multiselect

Poojitha
Communicator

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
Communicator

@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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...