Dashboards & Visualizations

How can I parse the URL from cell in Drilldown?

splunktrain9
Loves-to-Learn Everything

I have multiple cells that contain information like:
URL
Name

When I click on the cell, I want to open a tab to URL, and ignore "name".

For example, in this table when I click on the cell, I want to navigate to someurl, assuming someurl is an actual webpage link.

| makeresults 
| eval A="someurl",B="someurl",C="someurl",A_name="somename",B_name="somename",C_name="somename"
| eval As = mvappend(A,A_name)
| eval Bs = mvappend(B,B_name)
| eval Cs = mvappend(C,C_name)
| table As Bs Cs



 

Labels (2)
0 Karma

to4kawa
Ultra Champion

sample:

<dashboard>
  <label>drilldown_multi</label>
  <init>
    <unset token="url"></unset>
    <unset token="url2"></unset>
  </init>
  <row>
    <panel>
      <table id="tableMulti">
        <search>
          <query>| makeresults 
| eval A="someurl1",B="someurl2",C="someurl3",A_name="somename1",B_name="somename2",C_name="somename3"
| eval As = mvappend(A,A_name)
| eval Bs = mvappend(B,B_name)
| eval Cs = mvappend(C,C_name)
| table As Bs Cs
| nomv As | nomv Bs |nomv Cs</query>
          <earliest>0</earliest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="count">50</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">cell</option>
        <option name="percentagesRow">false</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>
        <drilldown>
          <eval token="url">$click.value2$</eval>
          <eval token="url2">replace($url$,".*$","")</eval>
        </drilldown>
      </table>
    </panel>
  </row>
  <row><panel><html><p>$url$</p><p>$url2$</p></html></panel></row>
</dashboard>
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...