Splunk Search

How to parse search time from one dashboard to another

leomedina
Explorer

Hello all,

I have several dashboards and would like to keep the same time searching period when navigating from one dynamic dashboard to another. What would be the best approach for something like this?

0 Karma

woodcock
Esteemed Legend

Just add a timepicker, give it a default value and reference it inside of each of your panel's searches. If you would like it to not be alterable, then make the control invisible.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi leomedina,
are you speaking about drilldown?
if you want to pass the time period from a dashboard to another you have to insert in your drilldown url the two tokens, something like this:

<drilldown>
  <link>secondary_dashboard?token1=$row.field1$&amp;TimeFrom=$Time.earliest$&amp;TimeTo=$Time.latest$</link>
</drilldown>

and in the secondary dashboard you have to insert the two time tokens in earliest and latest tags

<earliest>$TimeFrom$</earliest>
<latest>$TimeTo$</latest>

Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...