Dashboards & Visualizations

Drilldown conditionally based on the value of the selected element in a table?

dhanapathij
Engager

I have use a case to navigate to a hyperlink based on the value of the selected element in a table.

Ex: If the value of the selected field is x, show me the link
Else do noting, i mean disable the link

I don't want to use JS. Is there way doing this without using JavaScript in Simple XML dashboard?

If not, are there any plans adding this in coming versions?

rjthibod
Champion

Yes, this should be possible without JS. Here is the gist (assumes you are enabling drilldowns on cell).

You will need to substitute the field name for the cell (i.e., the column name in the table) in the condition where it says "YOUR_FIELD", substitute your value for "x" in the final check in the condition as well, and finally, substitute your link in the <link> element where it says "".

  <drilldown>
    <condition match="isnotnull('click.name2') AND 'click.name2' == &quot;YOUR_FIELD&quot; AND isnotnull('click.value2')  AND 'click.value2' == &quot;x&quot;">
      <link>https://<YOUR_LINK></link>
    </condition>
  </drilldown>

thulasikrishnan
Path Finder

you saved my day

lmonahan
Path Finder

Ditto!  Awesome info.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...