My app has multiple dashboards, each with a time input (that sets a token). The problem is- if I set the filter to "Last Week", as soon as a navigate to another dashboard, it gets reset to Last 24 hours. Is there a way to persist the time filter across dashboards?
Will wait for more replies here to either agree or disagree with my comment but I think this feature does not exist. If it does, i will be happy to learn it.
I agree with @adonio. The value of timerange picker in the dashboard had scope limited to that dashboard only. Unless you pass it explicitly to next dashboard while navigating from dashboard1 (using drilldown/link etc, not using menu items), each dashboard's timerange picker will have a default value that you set while creating the dashboard.
@theactiveactor you can create a form with time control and all the links to your dashboards using link (in Simple XML panel) or anchor tag (< a href > in HTML Panel). This dashboard can serve as your own menu (You can style the same using CSS).
You can attach the earliest and latest timestamp to the link as queryString, so that you select Time only at one place.
In each of your dashboard xml you can set hideAppBar="true" and hideSplunkBar="true" to prevent users from using Splunk's navigation menu.
You need to pass the values on drill down to next dashboard so they are preserved. Also should name your time range token as follows:
<input id="time_id" type="time"> <default>Last 24 hours</default> </input>
On drill down pass values as
search?q= sourcetype=bashhistory | search $category$ $pcidomain$ host="$row.host$" | table time, host, bashcommand, hostbunit, hostip, hostcategory, hostpcidomain, hostcity, hostcountry&earliest=$earliest$&latest=$latest$&autopause=$auto_pause$