Dashboards & Visualizations

Pass token to a label

vikas_gopal
Builder

Hi Guys,
I have a very basic requirement .I want to show token value in a label .I tried it with Title ir works fine but it's not woking with label.
$vikas$--works fine
---not working.

Please suggest me how I can achieve this with Simple XML.
Regards
Vikas Gopal

Tags (2)
0 Karma
1 Solution

slr
Communicator

Hi @vikas_gopal and @aelliott

I have this issue, and is really weird.

If I put the token in a title etiquette all works fine, but when I do the same in a label etiquette like this:

<label>$token$</label>

The first time works fine, but when I reload the dashboard, Splunk adds another pair of $, and I can't see the token's value:

$$token$$

This is weird, but even more when you go to the XML code and it seems to be right:

<label>$token$</label>

but if you click in Edit Panels, and then edit input, I can see in the label text box the next:

$$token$$

What's wrong?

Regards.

0 Karma

aelliott
Motivator

what is showing up? "$vikas$"?

0 Karma

vikas_gopal
Builder

This is so funny I started with $vikas$ only it did not work then I changed it to $$vikas$$ it did not work.Now just after restart $vikas$ works absolutely fine...Thanks @aelliott for the quick responce .You are awesome..

0 Karma

jinn9736
New Member

it is still not working for me

0 Karma

vikas_gopal
Builder

let me tell what I am doing .I want to change the label as per my drop down list .I mean label changes if option changes in the dropdown.

0 Karma

vikas_gopal
Builder

It did not work for me with this result came up like $vikas$ .First $ is gone.Don't know where is the problem..

0 Karma
Get Updates on the Splunk Community!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...