Dashboards & Visualizations

Value of click.name2 wrong

Fadom1013
Explorer

Hi everybody !

I have a map with points, with values : long, lat and the name of the city 🙂

When the user click of a point i open a dashboard with the name of the city ($click.name2$) clicked

But for the all points the value of click.name 2 are the same 😕 whereas when I fly over the dots, the names are quite different.

I try everything with $click.name$, $click.name2$,  or $click.value$,  $click.value2$,
I do this : 

 

 

<link target="_blank">/app/dashboard_?name=$click.name2$</link> 

 

 

With this query for the map :

 

.
.
.
.
.

| geostats latfield=latitude_dgr longfield=longitude_dgr  count by name

 

 Thanksss 🙂

Labels (3)
0 Karma

dmarling
Builder

click.name and click.value are not the appropriate tokens to use when you are using a cluster map, which is what I am assuming you are using since you are using the geostats command to generate the data for the visualization.  You can simply use $row.name$ as your drill down token since behind the visualization is just a big table and each cluster represents a row.  Now this gets complicated when you have multiple names in a single tile, but I believe it should still be functional depending on your data.

If this comment/answer was helpful, please up vote it. Thank you.

Fadom1013
Explorer

Thank a lot for your reply 🙂

But when i use $row.name$, it's not recognize like a token 😕 :

<link target="_blank">/app/dashboard?name=$row.name$</link>

  

0 Karma

dmarling
Builder

When you pop your query out of the dashboard and you are looking at the table instead of the visualization what is the name of the column that has the data you want in the token?  Also please post the full drilldown part of your xml on the panel just in case.

If this comment/answer was helpful, please up vote it. Thank you.

Fadom1013
Explorer

Thx for your answer, the columns are the name of the cities 🙂 like this :



Capture.PNG

And this is my drilldown xml : 

<drilldown>
        
            <link target="_blank">/app/dashboard?name=$click.name2$</link> 
  </drilldown>
        

So, all my link are dashboard?name=NExxxx :// a single value for all points of the map

thank you !

0 Karma

Fadom1013
Explorer

Same for $row.name_city$, not recognize

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...