Splunk Search

Adding timerangepicker to Dashboard of Report Panels??

sarge338
Path Finder

Hello Everyone,

This may be an odd question, but I am wondering how (if possible) to add a useful timerangepicker to a dashboard in which all panels are from existing reports.  In the past, the dashboard has just been run for "Last 7 Days", which all of the reports are set up for.  Recently, a feature has been desired to allow the user to select the time range for which the data will be presented.  Obviously I can add the timerangepicker and submit button pretty easily, but how do I tie the chosen time range to the reports in the panels without recreating everything?

Thank you for your time and assistance!

Labels (1)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @sarge338,

You can make reports using your time_token by editing your dashboard source , you should add earliest and latest tags into the search tag like below sample;

  <row>
    <panel>
      <event>
        <search ref="test_report">
          <earliest>$time_token.earliest$</earliest>
          <latest>$time_token.latest$</latest>
        </search>
        <option name="list.drilldown">none</option>
      </event>
    </panel>
  </row>
If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi @sarge338,

You can make reports using your time_token by editing your dashboard source , you should add earliest and latest tags into the search tag like below sample;

  <row>
    <panel>
      <event>
        <search ref="test_report">
          <earliest>$time_token.earliest$</earliest>
          <latest>$time_token.latest$</latest>
        </search>
        <option name="list.drilldown">none</option>
      </event>
    </panel>
  </row>
If this reply helps you an upvote and "Accept as Solution" is appreciated.
Get Updates on the Splunk Community!

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 ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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 ...