Dashboards & Visualizations

How to insert hyperlink to the values of a column in Dashboard Studio.

Sharma21
Explorer

I have a visualization of type splunk.table in Dashboard Studio (version 9.0.2). The source table contains columns "id" from which I have derived the column "link".

sourcetype="x"
| eval link = "https://xyz.com/" + id
| table id, link 

I want the "link" column be visible as hyperlink (blue and underlined) in the dashboard, such that, each value of the column when clicked, opens the respective link in a new tab.

I tried making below changes, not sure what am i doing wrong here:

        "viz_jZKnPQQG": {
            "type": "splunk.table",
            "title": "x",
            "dataSources": {
                "primary": "ds_GresBkrN"
            },
            "options": {
                "tableFormat": {
                    "rowBackgroundColors": "> table | seriesByIndex(0) | pick(tableRowBackgroundColorsByTheme)"
                },
                "count": 8,
                "backgroundColor": "> themes.defaultBackgroundColor",
                "showRowNumbers": true,
                "fontSize": "small",
                "showInternalFields": false
            },
            "eventHandlers": [
                {
                    "type": "drilldown.customUrl",
                    "options": {
                        "url": "$row.link$",
                        "newTab": true
                    }
                }
            ]
        },
 

 

 

Labels (2)
Tags (2)
0 Karma
1 Solution

renjith_nair
Legend

@Sharma21 ,

try adding the drill down

            "eventHandlers": [
                {
                    "type": "drilldown.customUrl",
                    "options": {
                        "url": "$row.link.value$",
                        "newTab": true
                    }
                }
            ]

 

Please find a run anywhere example

{
    "visualizations": {
        "viz_CIUVl7ST": {
            "type": "splunk.table",
            "options": {},
            "dataSources": {
                "primary": "ds_rMaj17sl"
            },
            "eventHandlers": [
                {
                    "type": "drilldown.customUrl",
                    "options": {
                        "url": "$row.link.value$",
                        "newTab": true
                    }
                }
            ]
        }
    },
    "dataSources": {
        "ds_rMaj17sl": {
            "type": "ds.search",
            "options": {
                "query": "| makeresults count=5\n|streamstats count\n| eval link=\"https://community.splunk.com/t5/Splunk-Answers/ct-p/en-us-splunk-answers/page/\" + count"
            },
            "name": "Search_1"
        }
    },
    "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_CIUVl7ST",
                "type": "block",
                "position": {
                    "x": 0,
                    "y": 0,
                    "w": 1250,
                    "h": 300
                }
            }
        ],
        "globalInputs": [
            "input_global_trp"
        ]
    },
    "description": "",
    "title": "Studio_Link"
}
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

Sharma21
Explorer

It worked. Thank you.

 

0 Karma

renjith_nair
Legend

@Sharma21 ,

try adding the drill down

            "eventHandlers": [
                {
                    "type": "drilldown.customUrl",
                    "options": {
                        "url": "$row.link.value$",
                        "newTab": true
                    }
                }
            ]

 

Please find a run anywhere example

{
    "visualizations": {
        "viz_CIUVl7ST": {
            "type": "splunk.table",
            "options": {},
            "dataSources": {
                "primary": "ds_rMaj17sl"
            },
            "eventHandlers": [
                {
                    "type": "drilldown.customUrl",
                    "options": {
                        "url": "$row.link.value$",
                        "newTab": true
                    }
                }
            ]
        }
    },
    "dataSources": {
        "ds_rMaj17sl": {
            "type": "ds.search",
            "options": {
                "query": "| makeresults count=5\n|streamstats count\n| eval link=\"https://community.splunk.com/t5/Splunk-Answers/ct-p/en-us-splunk-answers/page/\" + count"
            },
            "name": "Search_1"
        }
    },
    "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_CIUVl7ST",
                "type": "block",
                "position": {
                    "x": 0,
                    "y": 0,
                    "w": 1250,
                    "h": 300
                }
            }
        ],
        "globalInputs": [
            "input_global_trp"
        ]
    },
    "description": "",
    "title": "Studio_Link"
}
---
What goes around comes around. If it helps, hit it with Karma 🙂
Get Updates on the Splunk Community!

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...