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
Communicator

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
Communicator

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!

Enterprise Security Content Update (ESCU) | New Releases

In June, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...

Index This | What gets bigger the more you remove?

June 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...