Dashboards & Visualizations

Tokens not setting in hyperlink

ChrisCLewis
Communicator

I am trying to set a token when someone uses a hyperlink in a dashboard, in theory using the details below as part of the href should work but it is not, does anyone have any thoughts on how to get it to work?

data-set-token="token" data-value="new token value"

I am on version 7.3.

Many thanks for your time.

0 Karma

to4kawa
Ultra Champion
<drilldown>
 <set token="a_link">$click.value2$</set>
 <eval token="url">mvindex(split($a_link$,"/"),2)</eval>
<link target="_blank">
 <![CDATA[ https://$url$ ]]></link>
</drilldown>

like that.

0 Karma

ChrisCLewis
Communicator

Hi there,
Many thanks for a speedy reply.

We need to have a html panel (don't ask 😉 ) giving some information to dashboard visitors with links as part of the information, so drill downs are not an option.

panel > html
1st sentence for visitors - LINK1a LINK1b
2nd sentence for visitors - LINK2
3rd sentence for visitors - LINK3
html > panel

0 Karma

to4kawa
Ultra Champion
<p>1st sentence<a href="https://$url1|u$">$url1$</a></p>
<p>2nd sentence<a href="https://$url2|u$">$url2$</a></p>
<p>3rd sentence<a href="https://$url3|u$">$url3$</a></p>
0 Karma

ChrisCLewis
Communicator

The main issue, it is that the methods for setting tokens does not appear to be working (the links is not the problem):
data-set-token="token1"
data-value="new token value"

Is not passing updated token value to token1

0 Karma

to4kawa
Ultra Champion

your question is wrong? Tokens not setting in hyperlink

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