Dashboards & Visualizations

Dashboard Initial Token input.

DanielPriceUK
Path Finder

Hi, All  Since the last Splunk update I've noticed some unexpected behavior when it comes to tokens with Splunk Dashboard Studio.

If you have an input (dropdown or multiselect) with a default value set to None.
After loading the dashboard page, then setting the input value,
The base searches in the dashboard that use the input token will update, 
but any chain searches of that base search do not.

It does however update if you either refresh the page with the tokens set in the url, or a change to the input for a second time. (any other action which causes the page to refresh in some way eg: editing page will update the dashboard and the chain search will update)

is this behaviour a bug, and is there currently a way to fix this behaviour?

Thanks Daniel 

Below is a self contained minimal example to demonstrate this.
Splunk Dashboard Studio: Absolute/Full control layout

 

{
	"visualizations": {
		"viz_cdPoxmBV": {
			"type": "splunk.table",
			"dataSources": {
				"primary": "ds_CJTH14Fk"
			},
			"title": "Base"
		},
		"viz_t4aAHmKH": {
			"type": "splunk.table",
			"title": "Chain",
			"dataSources": {
				"primary": "ds_aqLh17e3"
			}
		}
	},
	"dataSources": {
		"ds_CJTH14Fk": {
			"type": "ds.search",
			"options": {
				"query": "| makeresults\n| eval a=\"$input$\"\n| table a ",
				"queryParameters": {
					"earliest": "0",
					"latest": ""
				}
			},
			"name": "Search_Base"
		},
		"ds_aqLh17e3": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_CJTH14Fk",
				"query": "| eval a=a+\"_END\""
			},
			"name": "Search_1"
		}
	},
	"defaults": {
		"dataSources": {
			"ds.search": {
				"options": {
					"queryParameters": {
						"latest": "$global_time.latest$",
						"earliest": "$global_time.earliest$"
					}
				}
			}
		}
	},
	"inputs": {
		"input_aXQ6s8I2": {
			"options": {
				"items": [
					{
						"label": "All",
						"value": "*"
					},
					{
						"label": "Item 1",
						"value": "item001"
					},
					{
						"label": "Item 2",
						"value": "item002"
					}
				],
				"token": "input"
			},
			"title": "Dropdown Input Title",
			"type": "input.dropdown"
		}
	},
	"layout": {
		"type": "absolute",
		"options": {
			"display": "auto-scale"
		},
		"structure": [
			{
				"item": "viz_cdPoxmBV",
				"type": "block",
				"position": {
					"x": 10,
					"y": 10,
					"w": 410,
					"h": 140
				}
			},
			{
				"item": "viz_t4aAHmKH",
				"type": "block",
				"position": {
					"x": 430,
					"y": 10,
					"w": 400,
					"h": 140
				}
			}
		],
		"globalInputs": [
			"input_aXQ6s8I2"
		]
	},
	"description": "",
	"title": "Test_Token"
}

 




Labels (2)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Painting a Clearer Picture: Unifying Your Investigations with Cisco AI Canvas

Painting a Clearer Picture: Unifying Your Investigations with Cisco AI Canvas  We’ve all been there. You’re ...

Hello POJO, meet nocode

What's the Challenge? Instrumentation agents are highly advanced bits of software that manipulate bytecode, ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...