Dashboards & Visualizations

how to send click.value as string even if its numeric

surekhasplunk
Communicator

Hi,

I am using a drilldown url like below, and in the riskscore_token i have values like "1/4" or "2/4" or "3/4" or "4/4" so when passing this to the drilldown page thats getting converted to riskscore_token="1597788000.000" which ideally should be riskscore_token="4/4"

https://url/app/drilldown_page?riskscore_token='$click.value$'

How to get rid of this passing exact string value and not as numeric

Thanks

Labels (2)
Tags (2)
0 Karma

Nisha18789
Builder

Hi @surekhasplunk , token value of "1/2" , "4/4" will work perfectly fine.

It appears that click.value is evaluating as 1/2 and not "1/2" and hence when riskscore_token is evaluated its getting the numerical value. Please update the click.value to have string value like "1/2"

https://url/app/drilldown_page?riskscore_token='$click.value$'

0 Karma

surekhasplunk
Communicator

Thanks @Nisha18789 

you mentioned "Please update the click.value to have string value like "1/2""

And how to do that ? where to update and how to update.

0 Karma

Nisha18789
Builder

Hi @surekhasplunk , could you please post the dashboard source code, where you are passing the token to the drill down url?

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...