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!

Agentic SOC Triage: Investigating Splunk ES Notables with MCP Server and a Local LLM

The Problem: Too Many Alerts, Too Little Context Security operations teams running Splunk Enterprise Security ...

All Work and No Play? Not at .conf26! Unwind at These Evening Events

Between hands-on technical sessions, keynote reveals, and diving into live architectures, .conf26 is packed ...

Join the Hackathon at .conf26 and build a No-Code AI agent

Join us for the AI Agent Buildathon, an in-person, three-hour hands-on Hackathon where you’ll use Splunk Agent ...