Dashboards & Visualizations

How to pass timetoken across splunk studio dashboard

AsmaF2025
Explorer

Hello All, 

Require guidance to pass the default  Global time token to be passed  from one studio dashboard to  another studio dashboard. Both dashboard have the same default global time token , no changes made. And the token used across the datasource of the respective panels.. 

i use the below custom url under drilldown to pass the token to another dashbaord.

https://asdfghjkl:8000/en-US/app/app_name/dashboard_name?form.global_time.earliest=$global_time.earl...


on the redirecting page , below is my input , on redirects it always loads the dashboard as per default value declare on the redirecitng dashbaord. 
{
"type": "input.timerange",
"options": {
"token": "global_time",
"defaultValue": "0,"
},
"title": "Global Time Range"
}

kindly advice, the time range i select on main dashbaord , should be the same im passing to subdashbaord also. 

Labels (2)
0 Karma

PrewinThomas
Motivator

@AsmaF2025 

try using a custom token like passed_time in the redirect URL and dashboard input

Drilldown URL

https://asdfghjkl:8000/en-US/app/app_name/dashboard_name?form.passed_time.earliest=$global_time.earliest$&form.passed_time.latest=$global_time.latest$

on the redirecting dashbaord

{
"type": "input.timerange",
"options": {
"token": "passed_time",
"defaultValue": "-24h@h,now"
},
"title": "Global Time Range"
}


Then in your dashboard’s defaults section,

"queryParameters": {
"earliest": "$passed_time.earliest$",
"latest": "$passed_time.latest$"
}


Regards,
Prewin
Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

 

0 Karma

AsmaF2025
Explorer

@PrewinThomas  @tej57  I have tried implementing the same, but for each redirection , the dashboard loads only the default value mentioned on the redirecting dashboard : 

My redirecting dashboard link : 
https://host:8000/en-US/app/app_name/dashboard_name?form.time.earliest=2025-03-01T00:00:00.000&f...

I have also tried it by removing the default value ,

{
"type": "input.timerange",
"options": {
"token": "passed_time"
},
"title": "Global Time Range"
}

on this scenario i observed ,  my token is not being passed. and panels are showing waiting for input . 
i validated it by capturing the tokens on the "ADD TEXT " field. the token passes its value, but my panel remained the same showing waiting for input.

I have also tried , with different default value for the input , still the same. 

 "inputs": {
        "input_global_trp": {
            "type""input.timerange",
            "options": {
                "token""passed_time",
                "defaultValue""$passed_time.latest$,$passed_time.earliest$"
            },
            "title""Global Time Range"
        }
    },

 

I have also remove the whole input , and only captured the token at :
  
"defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "latest""$passed_time.latest$",
                        "earliest""$passed_time.earliest$"
                    }
                }
            }
        }

Just so puzzled, why my token values are not passed to the source , but fine on the text box. 
kindly advice 





0 Karma

tej57
Builder

Hey @AsmaF2025,

Try using another name for the time token instead of global_time. And use the new name as a token to be passed to the other dashboard. I believe there's a conflict since both of the dashboards have global_time present as a token already.

Let us know if it works or not and we can troubleshoot further.

Thanks,
Tejas.

 

---
If the above solution helps, an upvote is appreciated. 

0 Karma

AsmaF2025
Explorer

Trying different token name on both dashabord doesnt work either.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...