Dashboards & Visualizations

How to add a splunk field to the end of a clickable customer url

Millowster
New Member

Hello all, 

 

I have a dashboard with a field "id" that I want to add to the end of a custom URL that I have defined in the "interactions" on click section.

My Goal is to have this field data added to the end of my custom url and when clicked will load the exact page I need with that value at the end in the browser.

This is what I have tried. I tried to add the "$click.value$" then also tried "=$click.value$" I also tried to put just "$id$" at the end. No results it just loads the URL with my addition as text (does not pull the actual value)

            "eventHandlers": [
                {
                    "type": "drilldown.customUrl",
                    "options": {
                        "url": "https://myURL.com/abcd/=$click.value$",
                        "newTab": true
Labels (4)
0 Karma

Millowster
New Member

OK we got this to work in the Classic dashboard however this drilldown does not work in the new dashboard studio. 

What we use now is the below, with $row.id|n$ filling in the data from the field we want. However in dashboard studio it does not execute $row.id|n$ instead it just thinks it's part of the URL and never inserts the ID#.
{ hxxps://mySplunkcloud/en-US/app/missioncontrol/mc_incident_review#/$row.id|n$ }

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Millowster ,

this (and many others) is the reason because I don't use Dashboad Studio: not all the functions of Classic Dashboard are still implemented.

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Millowster,

yu have to create a drilldown.

Follow the documentation at https://docs.splunk.com/Documentation/Splunk/9.2.0/Viz/DrilldownIntro .

It's also useful the Splunk Dashboard Examples App (https://splunkbase.splunk.com/app/1603) to understand how to do this.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...