Here's an alternative using a single button and a JSONata expression for Splunk Enterprise 10.2 and Splunk Cloud Platform 10.1.2507 or later. Also note that you can reference tokens in SPL comments without changing the logic of your search. I used the "Clockwise Gapped Circle Arrow (⟳)" Unicode character for fun, but Dashboard Studio doesn't provide a documented method to add ARIA labels. It's best to follow the Splunk Style Guide UI text guidelines and your organization's accessibility requirements. {
"title": "refresh_button_ds",
"description": "",
"inputs": {
"input_4GfEjPs7": {
"eventHandlers": [
{
"options": {
"tokens": [
{
"token": "refresh_token",
"value": "$eval:toggle_refresh_token$"
}
]
},
"type": "drilldown.setToken"
}
],
"options": {
"appearance": "standalone",
"label": "⟳"
},
"type": "input.button"
},
"input_global_trp": {
"options": {
"defaultValue": "-24h@h,now",
"token": "global_time"
},
"title": "Global Time Range",
"type": "input.timerange"
}
},
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
}
},
"ds.spl2": {
"options": {
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
}
}
},
"tokens": {
"default": {
"refresh_token": {
"value": "1"
}
}
},
"visualizations": {
"global": {
"showProgressBar": true
}
}
},
"visualizations": {
"viz_c1vF95VO": {
"dataSources": {
"primary": "ds_9V82Z8cg"
},
"options": {},
"type": "splunk.table"
},
"viz_nWCwXQxf": {
"dataSources": {
"primary": "ds_5dWrITzj"
},
"options": {},
"type": "splunk.table"
}
},
"dataSources": {
"ds_5dWrITzj": {
"name": "Search_2",
"options": {
"query": "| makeresults\n| addinfo\n``` $refresh_token$ ```"
},
"type": "ds.search"
},
"ds_9V82Z8cg": {
"name": "Search_1",
"options": {
"query": "| makeresults\n| addinfo\n``` $refresh_token$ ```"
},
"type": "ds.search"
}
},
"layout": {
"globalInputs": [
"input_global_trp",
"input_4GfEjPs7"
],
"layoutDefinitions": {
"layout_1": {
"options": {
"height": 960,
"width": 1440
},
"structure": [
{
"item": "viz_c1vF95VO",
"position": {
"h": 200,
"w": 1440,
"x": 0,
"y": 0
},
"type": "block"
},
{
"item": "viz_nWCwXQxf",
"position": {
"h": 200,
"w": 1440,
"x": 0,
"y": 200
},
"type": "block"
}
],
"type": "grid"
}
},
"tabs": {
"items": [
{
"label": "New tab",
"layoutId": "layout_1"
}
]
}
},
"expressions": {
"eval": {
"eval_1": {
"name": "toggle_refresh_token",
"value": "$refresh_token$ = 1 ? 0 : 1"
}
}
}
}
... View more