Dashboards & Visualizations

How can I make Dashboard Studio drilldown highlight be the entire row?

jrs42
Path Finder

In a Classic dashboard, I can add 

 

<option name="drilldown">row</option>

 

and it highlights the entire row.  My drilldown is not cell-specific, so this is what I want in my Dashboard Studio dashboard.  I've tried:

 

"viz_Yy6FIxmM": {
    "type": "splunk.table",
    "options": {
        "tableFormat": {
	    "align": "> table |pick(alignment)"
	},
	"drilldown": "row",
...

 

with no change.  Thx!

Labels (2)
0 Karma
1 Solution

tej57
Contributor

Hello @jrs42,

In Dashboard studio, there's no option to specify a drilldown for a particular cell or a row. When you enable the drilldown, by default it gets applied to a cell. You can find the following JSON source code as an example for a drilldown to set token in dashboard studio.

{
    "visualizations": {
        "viz_dNS83Gj5": {
            "type": "splunk.table",
            "dataSources": {
                "primary": "ds_aQ7285AG"
            },
            "eventHandlers": [
                {
                    "type": "drilldown.setToken",
                    "options": {
                        "tokens": [
                            {
                                "token": "log_level_tok",
                                "key": "row.log_level.value"
                            }
                        ]
                    }
                }
            ]
        },
        "viz_qGr86Sbm": {
            "type": "splunk.events",
            "options": {},
            "dataSources": {
                "primary": "ds_MmJUCreO"
            }
        }
    },
    "dataSources": {
        "ds_aQ7285AG": {
            "type": "ds.search",
            "options": {
                "query": "index=_internal source=\"*splunkd.log\"\n| stats count by log_level",
                "queryParameters": {
                    "earliest": "$global_time.earliest$",
                    "latest": "$global_time.latest$"
                }
            },
            "name": "Search_1"
        },
        "ds_MmJUCreO": {
            "type": "ds.search",
            "options": {
                "query": "index=_internal source=\"*splunkd.log\" log_level=\"$log_level_tok$\"",
                "queryParameters": {
                    "earliest": "$global_time.earliest$",
                    "latest": "$global_time.latest$"
                }
            },
            "name": "Search_2"
        }
    },
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "latest": "$global_time.latest$",
                        "earliest": "$global_time.earliest$"
                    }
                }
            }
        }
    },
    "inputs": {
        "input_global_trp": {
            "type": "input.timerange",
            "options": {
                "token": "global_time",
                "defaultValue": "-24h@h,now"
            },
            "title": "Global Time Range"
        }
    },
    "layout": {
        "type": "absolute",
        "options": {
            "width": 1440,
            "height": 960,
            "display": "auto"
        },
        "structure": [
            {
                "item": "viz_dNS83Gj5",
                "type": "block",
                "position": {
                    "x": 0,
                    "y": 0,
                    "w": 300,
                    "h": 300
                }
            },
            {
                "item": "viz_qGr86Sbm",
                "type": "block",
                "position": {
                    "x": 300,
                    "y": 0,
                    "w": 1140,
                    "h": 300
                }
            }
        ],
        "globalInputs": [
            "input_global_trp"
        ]
    },
    "description": "",
    "title": "Test Input Placeholder"
}

 

Thanks,
Tejas.

 

---

If the above solution helps, an upvote is appreciated..!!

 

View solution in original post

tej57
Contributor

Hello @jrs42,

In Dashboard studio, there's no option to specify a drilldown for a particular cell or a row. When you enable the drilldown, by default it gets applied to a cell. You can find the following JSON source code as an example for a drilldown to set token in dashboard studio.

{
    "visualizations": {
        "viz_dNS83Gj5": {
            "type": "splunk.table",
            "dataSources": {
                "primary": "ds_aQ7285AG"
            },
            "eventHandlers": [
                {
                    "type": "drilldown.setToken",
                    "options": {
                        "tokens": [
                            {
                                "token": "log_level_tok",
                                "key": "row.log_level.value"
                            }
                        ]
                    }
                }
            ]
        },
        "viz_qGr86Sbm": {
            "type": "splunk.events",
            "options": {},
            "dataSources": {
                "primary": "ds_MmJUCreO"
            }
        }
    },
    "dataSources": {
        "ds_aQ7285AG": {
            "type": "ds.search",
            "options": {
                "query": "index=_internal source=\"*splunkd.log\"\n| stats count by log_level",
                "queryParameters": {
                    "earliest": "$global_time.earliest$",
                    "latest": "$global_time.latest$"
                }
            },
            "name": "Search_1"
        },
        "ds_MmJUCreO": {
            "type": "ds.search",
            "options": {
                "query": "index=_internal source=\"*splunkd.log\" log_level=\"$log_level_tok$\"",
                "queryParameters": {
                    "earliest": "$global_time.earliest$",
                    "latest": "$global_time.latest$"
                }
            },
            "name": "Search_2"
        }
    },
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "latest": "$global_time.latest$",
                        "earliest": "$global_time.earliest$"
                    }
                }
            }
        }
    },
    "inputs": {
        "input_global_trp": {
            "type": "input.timerange",
            "options": {
                "token": "global_time",
                "defaultValue": "-24h@h,now"
            },
            "title": "Global Time Range"
        }
    },
    "layout": {
        "type": "absolute",
        "options": {
            "width": 1440,
            "height": 960,
            "display": "auto"
        },
        "structure": [
            {
                "item": "viz_dNS83Gj5",
                "type": "block",
                "position": {
                    "x": 0,
                    "y": 0,
                    "w": 300,
                    "h": 300
                }
            },
            {
                "item": "viz_qGr86Sbm",
                "type": "block",
                "position": {
                    "x": 300,
                    "y": 0,
                    "w": 1140,
                    "h": 300
                }
            }
        ],
        "globalInputs": [
            "input_global_trp"
        ]
    },
    "description": "",
    "title": "Test Input Placeholder"
}

 

Thanks,
Tejas.

 

---

If the above solution helps, an upvote is appreciated..!!

 

Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...