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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...