Dashboards & Visualizations

Share data betwen views

sarumjanuch
Path Finder

I have 5 views and each of them have date picker, is there any way to share date picker between all views, so when i navigate from one to other, time remain as i selected.

Tags (2)
0 Karma

royimad
Builder

Try to use ValueSetter module to drilldown to other views, hope that this will help you.

 <module name="TimeRangePicker" layoutPanel="panel_row1_col1" autoRun="True">
            <param name="searchWhenChanged">True</param>
            <param name="selected">Last 30 days</param>  


    <module name="ValueSetter">
        <param name="name">stashedEarliest</param>
        <param name="value">$search.timeRange.earliest$</param>
        <module name="ValueSetter">
          <param name="name">stashedLatest</param>
          <param name="value">$search.timeRange.latest$</param>

         <!-- ... now anywhere downstream from here you can use `$stashedEarliest$` and `$stashedLatest$`.
    Thus $stashedEarliest$ and $stashedLatest$, downstream from that point, will always represent the time arguments as they came out of TimeRangePicker. 
           -->

    <!--  EXAMPLE BEGIN  -->
    <module name="Search" layoutPanel="panel_row1_col1" autoRun="True">
    <param name="search">
    |...........................
    <param name="earliest">$stashedEarliest$</param>
        <param name="latest">$stashedLatest$</param>
0 Karma

sarumjanuch
Path Finder

Hmm the problem is that i use simple XML..

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...