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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...