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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...