Dashboards & Visualizations

When a user clicks on a location on map, how do I make it redirect to a dashboard?

simona2121
Path Finder

I have a map, on which i have tagged IP's according to location. now, on click of a particular location on the map, i need it to redirect to another dashboard. pls help. thanks

0 Karma
1 Solution

niketn
Legend

You can code the drilldown event of the map chart visualization in Simple XML. You can set the link to your second dashboard using link attribute.

Following is a snippet from Dynamic Drilldown Examples provided in Splunk 6.x Dashboard Examples App. Please refer to the app for details.

    <drilldown>
      <link>/app/<Your App Name>/<Your Drill Down Dashboard Name>?form.<Your_DrillDown_Dashboard_Token_Name_To_Be_Set_From_Map_Clicked_Value>=$click.value$</link>
    </drilldown>

Refer to the following link to get the tokens available from the Map chart (you can use multiple to be passed on the the new dashboard as query string/s provided your drill down dashboard accepts the tokens and ideally should work with some default values like * for all etc): http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#map_.28event_t...

PS: I have used click.value to pass on selected value from the map to the new dashboard.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

You can code the drilldown event of the map chart visualization in Simple XML. You can set the link to your second dashboard using link attribute.

Following is a snippet from Dynamic Drilldown Examples provided in Splunk 6.x Dashboard Examples App. Please refer to the app for details.

    <drilldown>
      <link>/app/<Your App Name>/<Your Drill Down Dashboard Name>?form.<Your_DrillDown_Dashboard_Token_Name_To_Be_Set_From_Map_Clicked_Value>=$click.value$</link>
    </drilldown>

Refer to the following link to get the tokens available from the Map chart (you can use multiple to be passed on the the new dashboard as query string/s provided your drill down dashboard accepts the tokens and ideally should work with some default values like * for all etc): http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#map_.28event_t...

PS: I have used click.value to pass on selected value from the map to the new dashboard.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

sundareshr
Legend

Please share your dashboard.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...