Dashboards & Visualizations

How to use drill-downs using whole field values?

memarshall63
Communicator

I coded this drill down from my panel:

    <panel>
      <table>
        <search>
          <query>| makeresults 
| eval base = "www.google.com" 
| eval full = "http://www.google.com"
| eval word = "google"</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="count">10</option>
        <option name="drilldown">cell</option>
        <drilldown>
          <link target="_blank">$row.full$</link>
        </drilldown>
      </table>
    </panel>

I want the drill down to go to the full URL that's in $row.full$. However, Splunk seems to assume this is a relative path. If I use

        <drilldown>
          <link target="_blank">http://$row.base$</link>
        </drilldown>

It works as expected. The field I want to use as a target URL has the full path in it. So I'd rather just use $row.full$ as the target.

Is there a way to tell splunk it's a full URL?

0 Karma
1 Solution

niketn
Legend

@memarshall63 try with Token Filter |n which means no filter on existing token.

      <link target="_blank">$row.full|n$</link>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@memarshall63 try with Token Filter |n which means no filter on existing token.

      <link target="_blank">$row.full|n$</link>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

memarshall63
Communicator

Nice. Thanks very much.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...