Dashboards & Visualizations

Global Time Picker

Marco
Communicator

Hello Splunkers,

I'm developing a Splunk app with about 20 dashboards (20 XML files). Each dashboard has a time picker. The thing I have noticed is that when a user clicks on a new dashboard, the time picker resets. My question is: does Splunk have some sort of Global time picker, so that when a user selects a time value on the time picker it will follow them across multiple dashboards.

 

Attached below is a brief design of my application and what I am trying to do.

Splunk App Arc.jpg

 Any suggestions is much appreciated.

Thank you,

Marco

Labels (5)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

@Marco 

If you are travelling between dashboards via drilldown clicks on dashboards, then you can pass the current time picker values in the URL parameters, e.g. add 

 

form.time_range.earliest=$time_range.earliest$&form.time_range.latest=$time_range.latest$

 

to your drilldown links, along with any other url params you are passing. The above assumes your token for the time picker is called time_range.

 

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

@Marco 

If you are travelling between dashboards via drilldown clicks on dashboards, then you can pass the current time picker values in the URL parameters, e.g. add 

 

form.time_range.earliest=$time_range.earliest$&form.time_range.latest=$time_range.latest$

 

to your drilldown links, along with any other url params you are passing. The above assumes your token for the time picker is called time_range.

 

0 Karma

Marco
Communicator

Thank you, @bowesmana . it took me a while to see what you meant but I figured it out .  For anybody that might  be curious on how I implemented the code - check below.

dashboard1 is the name of the dashboard I want to go to and the string following that is the time picker value.

<link>dashboard1?form.Time_Picker.earliest=$Time_Picker.earliest$&amp;form.Time_Picker.latest=$Time_Picker.latest$</link>

 

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...