<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: splunk search offset in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27880#M1111</link>
    <description>&lt;P&gt;so i could add something like this: earliest=-8h endminutesago=5&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2013 15:20:14 GMT</pubDate>
    <dc:creator>aaronkorn</dc:creator>
    <dc:date>2013-05-09T15:20:14Z</dc:date>
    <item>
      <title>splunk search offset</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27878#M1109</link>
      <description>&lt;P&gt;Is there a way to offset a search by 5 min? We currently have a search that returns the user count for a 5 min window for the last 4 hours but in the time that it collects the user count to the current time it creates a lot of confusion within app teams here as the count is low until that 5 min aggregation period is over. I would essentially want the search to return the count from 4 hours ago to the current time - 5 min. &lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 15:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27878#M1109</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-05-08T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search offset</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27879#M1110</link>
      <description>&lt;P&gt;Have a look at:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;latest and earliest are your friends&lt;/P&gt;

&lt;P&gt;Edit:&lt;/P&gt;

&lt;P&gt;Sorry my first answer was a bit short I could/should have given you an example.&lt;/P&gt;

&lt;P&gt;Your suggestion works very well, I tend to just use earliest &amp;amp; latest because I can't remember the all the other keywords and if you work with savedsearches (or if you start developing dashboards) you only have the earliest &amp;amp; latest as the delimiters of your time frame&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Screenshot_9_5_13_17_41.png" alt="alt text" /&gt; &lt;/P&gt;

&lt;P&gt;One thing that can be important depending on the search is that the time-modifiers will snap to a time,&lt;BR /&gt;
-4h@h is not the same as &lt;A href="mailto:-4h@s"&gt;-4h@s&lt;/A&gt;. And just to make things a little more complicated the timemodifiers can be chained. A useful trick to find out the span/time window that you are searching when playing with time modifiers is to use the addinfo command. You can then easily calculate your span.&lt;/P&gt;

&lt;P&gt;This example will search over a time window of 4h starting 5 minutes in the past:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal GET earliest=-4h@m-5m latest=-5m@m | addinfo | eval span=(info_max_time-info_min_time)/3600
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2013 16:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27879#M1110</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-05-08T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search offset</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27880#M1111</link>
      <description>&lt;P&gt;so i could add something like this: earliest=-8h endminutesago=5&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 15:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27880#M1111</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-05-09T15:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search offset</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27881#M1112</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2013 18:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-search-offset/m-p/27881#M1112</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-05-10T18:33:06Z</dc:date>
    </item>
  </channel>
</rss>

