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!

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...