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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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