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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...