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!

Access Tokens Page - New & Improved

Splunk Observability Cloud recently launched an improved design for the access tokens page for better ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

&#x1f342; Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...