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!

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...