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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...