Dashboards & Visualizations

How do I place a hyperlink in a dashboard pdf report?

New Member

I am creating a splunk dashboard with a few reports.
On one report (outputted as a table), I want a long url to be replaced by a short number.
When clicking that number (VIA THE PDF DASHBOARD REPORT) , I want it to go to the external url.
Placing just the url works, but it's broken cause it's to long and wont open the full URL.

I followed the following guide:

It works while viewing the dashboard in a browser except for I still don't know how to edit the link correctly.

        <search ref="Report"></search>
        <fields>Name, QueueTime, FinishTime, Result, BuildId</fields>
        <option name="count">10</option>
        <option name="drilldown">cell</option>
        <drilldown target="_blank">
          <condition field="BuildId">
            <link target="_blank">
              $row.URL$          # Not working . URL is the name of the filed with the long url that I want replaced by another field with a short number
              https://google.com # Works

| where (source LIKE "%Report%")
| eval BuildId = Id + ""
| table Name, QueueTime, FinishTime, Result
Tags (1)
0 Karma


What is broken about the link that it is putting into the PDF?

Does the link fail to word-wrap and doesn’t fit on the page?

Or is it not a valid hyperlink you can click on?

0 Karma

New Member

If I just add the URL itself in a table, the link is clickable in the PDF, but it's to long and the browser will only open what hasn't went to the second line. The URL field itself is correct

0 Karma


So if I gave you a custom search command that uses bit.ly service to shorten urls, would you be interested knowing that it’s giving bit.ly all your links but providing the short url and also statistics on their usage?

It would work like this

 ... | bitly urlfield=fieldWithLongURLs | eval url = bitly_output | table url ...
0 Karma


Have you verified that the url works when pasted into the browser? Perhaps it has not been constructed correctly.

0 Karma

New Member

I tried getting the $row.URL$ to work, but it doesn't. Not sure what I am doing wrong. The generated URL field itself is correct.

0 Karma

New Member

A powershell script gets the info and sends an html email and also sends this info into splunk. The html email's link works and looking at the dashboard in splunk on a browser, the link works.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...