Dashboards & Visualizations

How to enable drilldown for specific columns?

vik
Explorer

Hi guys... 

 

I am trying to enable drill down for only the first column in a stats table. Any suggestions on how can we do this ? 

I would need rest of the columns to appear normal without any links (not clickable). 

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

The style selector needs to be repeated for all columns apart from the first (index="0")

    <panel depends="$stayhidden$">
      <html>
        <style>
          #tableClickableColumn table tbody td[data-cell-index="1"],
          #tableClickableColumn table tbody td[data-cell-index="2"]{
            color: black !important;
          }
        </style>
      </html>
    </panel>
    <panel>
      <table id="tableClickableColumn">
        <search>
          <query>
Put your search here
          </query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <condition field="first column name">
            <link target="_blank">$click.value|n$</link>
          </condition>
          <condition>
          </condition>
        </drilldown>
      </table>
    </panel>

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The style selector needs to be repeated for all columns apart from the first (index="0")

    <panel depends="$stayhidden$">
      <html>
        <style>
          #tableClickableColumn table tbody td[data-cell-index="1"],
          #tableClickableColumn table tbody td[data-cell-index="2"]{
            color: black !important;
          }
        </style>
      </html>
    </panel>
    <panel>
      <table id="tableClickableColumn">
        <search>
          <query>
Put your search here
          </query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <condition field="first column name">
            <link target="_blank">$click.value|n$</link>
          </condition>
          <condition>
          </condition>
        </drilldown>
      </table>
    </panel>
0 Karma

vik
Explorer

That helps! Thanks a lot

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...