Splunk Enterprise

link from lookup table into drilldown new page

spisiakmi
Contributor

Hi, any help, pls?

Here is the description:

  1. lookupTable(links.csv):columnName(Link)
  2. lookupTable(links.csv):columnValue(https://www.google.com)
  3. in the dashboard Table Visu: | inputlookup links.csv
    | head 1
    | table Link
  4. how to click on the tableCell (https://www.google.com) and new browser window with the https://www.google.com will be opened?

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

You don't have to show the column with the url in but you can still use it in the drilldown

    <panel>
      <table>
        <search>
          <query>| inputlookup links.csv
| eval Label="Click here"</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <link target="_blank">$row.Link|n$</link>
        </drilldown>
        <fields>Label</fields>
      </table>
    </panel>

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Create a drilldown on the table that opens a link using the value from the clicked cell.

0 Karma

spisiakmi
Contributor

Yes, you right:
<drilldown>
<link target="_blank">$doc_tkn|n$</link>
</drilldown>

And. How I can place there universal name of the link? Like: "Click here" and this will have different hyperlink in background?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You don't have to show the column with the url in but you can still use it in the drilldown

    <panel>
      <table>
        <search>
          <query>| inputlookup links.csv
| eval Label="Click here"</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <link target="_blank">$row.Link|n$</link>
        </drilldown>
        <fields>Label</fields>
      </table>
    </panel>

spisiakmi
Contributor

Hi ITWhisperer, you are unbelievable. It is working. Even I nowhere show the Link, it is hidden behind the Label. Thank you very much.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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