Hi @eholz1, I'll add one more example that works in Splunk Enterprise 9.4.12 and sets token values directly from a column chart. The token value you're looking for is probably row.<fieldname>.value, where <fieldname> corresponds to the over/row-split field in the chart command or the x-value in the xyseries command. E.g.: index=_internal source=*splunkd.log*
| chart limit=10 usenull=f useother=f count over log_level by component index=_internal source=*splunkd.log*
| stats count by log_level component
| xyseries log_level component count => row.log_level.value You copy and paste the source below or use it as a reference to define the dashboard using Dashboard Studio. There's no source-only magic in the dashboard. {
"title": "ds_drilldown",
"description": "",
"inputs": {
"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$"
}
}
}
}
},
"visualizations": {
"viz_TbwbICq3": {
"dataSources": {
"primary": "ds_zDetExHq"
},
"options": {},
"type": "splunk.table"
},
"viz_ZhY8abJJ": {
"options": {
"markdown": "**chart_name:** $chart_name$\n\n**chart_value:** $chart_value$\n\n**chart_row_log_level_value:** $chart_row_log_level_value$"
},
"type": "splunk.markdown"
},
"viz_eASiDDzL": {
"dataSources": {
"primary": "ds_AIqBMriG"
},
"eventHandlers": [
{
"options": {
"tokens": [
{
"key": "name",
"token": "chart_name"
},
{
"key": "value",
"token": "chart_value"
},
{
"key": "row.log_level.value",
"token": "chart_row_log_level_value"
}
]
},
"type": "drilldown.setToken"
}
],
"options": {},
"type": "splunk.column"
}
},
"dataSources": {
"ds_AIqBMriG": {
"name": "Search_1",
"options": {
"query": "index=_internal source=*splunkd.log*\n| chart limit=10 usenull=f useother=f count over log_level by component",
"queryParameters": {}
},
"type": "ds.search"
},
"ds_zDetExHq": {
"name": "Search_2",
"options": {
"query": "index=_internal source=*splunkd.log* log_level=$chart_row_log_level_value|s$\n| table _time log_level component _raw"
},
"type": "ds.search"
}
},
"layout": {
"globalInputs": [
"input_global_trp"
],
"layoutDefinitions": {
"layout_1": {
"options": {
"height": 960,
"width": 1440
},
"structure": [
{
"item": "viz_eASiDDzL",
"position": {
"h": 400,
"w": 1440,
"x": 0,
"y": 0
},
"type": "block"
},
{
"item": "viz_ZhY8abJJ",
"position": {
"h": 87,
"w": 1440,
"x": 0,
"y": 400
},
"type": "block"
},
{
"item": "viz_TbwbICq3",
"position": {
"h": 400,
"w": 1440,
"x": 0,
"y": 487
},
"type": "block"
}
],
"type": "grid"
}
},
"options": {},
"tabs": {
"items": [
{
"label": "New tab",
"layoutId": "layout_1"
}
]
}
}
}
... View more