<?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: How to set latest to be relative to earliest + 1h? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233608#M69392</link>
    <description>&lt;P&gt;OK, be sure to click "Accept" to close the question.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 14:05:50 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-12-01T14:05:50Z</dc:date>
    <item>
      <title>How to set latest to be relative to earliest + 1h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233605#M69389</link>
      <description>&lt;P&gt;How to set latest = earliest + 1h ? &lt;/P&gt;

&lt;P&gt;The reason I ask this question is because I want to add drilldown function into a column time chart. Time span of the chart is 1h.&lt;BR /&gt;
I can get the time of a selected column, which I will use as the earliest time. And I want to set latest to be + one hour from earliest.&lt;/P&gt;

&lt;P&gt;Or it would be great if anyone can tell me how to get the time range of a selected column.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 10:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233605#M69389</guid>
      <dc:creator>amylala</dc:creator>
      <dc:date>2015-11-12T10:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set latest to be relative to earliest + 1h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233606#M69390</link>
      <description>&lt;P&gt;With &lt;CODE&gt;relative_time&lt;/CODE&gt; and &lt;CODE&gt;map&lt;/CODE&gt;, like this (run anywhere example):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| noop | stats count AS latest | eval earliest=relative_time(now(), "-1d@d") | eval latest=earliest+3600 | map search="search earliest=$earliest$ latest=$latest$ index=_internal"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just replace &lt;CODE&gt;index=_internal&lt;/CODE&gt; with your search.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 12:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233606#M69390</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-12T12:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set latest to be relative to earliest + 1h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233607#M69391</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;link&amp;gt; 
        &amp;lt;![CDATA[ 
         /app/search/search?q=search index=app .. earliest=$earliest$ latest=$latest$ 
         ]]&amp;gt; 
       &amp;lt;/link&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks, woodcock. I can drill down to clicked time range with above query. No need to add internal for latest.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 10:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233607#M69391</guid>
      <dc:creator>amylala</dc:creator>
      <dc:date>2015-11-30T10:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set latest to be relative to earliest + 1h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233608#M69392</link>
      <description>&lt;P&gt;OK, be sure to click "Accept" to close the question.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-latest-to-be-relative-to-earliest-1h/m-p/233608#M69392</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-12-01T14:05:50Z</dc:date>
    </item>
  </channel>
</rss>

