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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...