Dashboards & Visualizations

How do I change the time range of a saved search for a panel using a time picker?

joxley
Path Finder

I have a saved search MySearch. I have added it to a dashboard as a panel. I can't find a way of changing the time range of the search to use the time picker.

0 Karma
1 Solution

joxley
Path Finder

I can't figure out a way of doing it through point and click, but if you edit the source of the dashboard and add the earliest and latest fields to the search, it will work

<search ref="FirstData - Swiped Count > Chip Count">
  <earliest>$field1.earliest$</earliest>
  <latest>$field1.latest$</latest>
</search>

View solution in original post

grittonc
Contributor

I couldn't get this to work with the above answer, but using the savedsearch command did work.

  <row>
    <panel>
      <event>
        <title>test_report</title>
        <search><query>|savedsearch test_report</query>
           <earliest>$field1.earliest$</earliest>
           <latest>$field1.latest$</latest>
        </search>
        <option name="list.drilldown">none</option>
      </event>
    </panel>
  </row>
0 Karma

joxley
Path Finder

I can't figure out a way of doing it through point and click, but if you edit the source of the dashboard and add the earliest and latest fields to the search, it will work

<search ref="FirstData - Swiped Count > Chip Count">
  <earliest>$field1.earliest$</earliest>
  <latest>$field1.latest$</latest>
</search>
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...