Dashboards & Visualizations

redirect to a hidden URL in table dashboard

arun_kant_sharm
Path Finder

Hi Experts,

In my tabular dashboard i want to redirect into another URL in row click.

index = generic| table resource , owner, results_link , date, timeHMS

I want to redirect my page that come in results_link, and I result_link field not visible in table dashboard.

for this i try:

<dashboard>
  <label>xyz</label>
  <row>
    <panel>
      <table>
        <search>
          <query>index = generic| table resource , owner, results_link , date, timeHMS</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <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>
        <fields>["resource" , "owner", "date", "timeHMS"]</fields> 
        <drilldown>
              <link>$click.value2|n$</link>
         </drilldown>
      </table>
    </panel>
  </row>
</dashboard>
Tags (2)
0 Karma

vnravikumar
Champion

Hi

check this

<dashboard>
  <label>xyz</label>
  <row>
    <panel>
      <table>
        <search>
          <query>|makeresults |eval date="31/01/2020",server="google",url="www.google.com"| table date,server,url</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <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>
        <fields>["date" , "server"]</fields>
        <drilldown>
          <eval token="u">replace($row.url$, "http://", ""</eval>
          <link target="_blank">
            <![CDATA[ http://$u$ ]]>
          </link>
        </drilldown>
      </table>
    </panel>
  </row>
</dashboard>
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, ...