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
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...