Dashboards & Visualizations

How to process click.value before passing it to a URL?

almond14
Engager

I know that click.value will give me the value of the leftmost column in the click row, but what should I do so I can process the value before passing it to a link?

Example:
I have a table with entries on the leftmost column like this: 2-5, 4-3, 5-1, 5-2, 5-7, 7-3, 7-8, 9-2. I would like to make it so when I click on a row, say the one containing 5-2, it will redirect me to a link with just the first number of the entry (in this case 5, not the whole 5-2) on the URL's form, say someothersite/?form.num=5. Same thing if I click on the rows with 5-1 or 5-7, but when I click 9-2, it will redirect me to someothersite/?form.num=9

Edit: I use version 6.2

0 Karma

ziegfried
Influencer

As of 6.3 you can use dashboard eval expressions to create tokens, and use that before you redirect to another view:

<drilldown>
          <eval token="tmp">mvindex(split('click.value', "-"), 0)</eval>
          <link>someothersite?form.num=$tmp$</link>
</drilldown>

almond14
Engager

I forgot to mention I used 6.2, and this method didn't work. Do you have other alternative for 6.2?

0 Karma

ziegfried
Influencer

The only thing that comes to mind for 6.2 is to use custom Javascript.

0 Karma

exocore123
Path Finder

Is there anything new since 6.5?

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 ...