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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...