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!

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...