<?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: Is it possible to retrieve the timerange (earliest and latest) in a search to use as a value for eval later? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-retrieve-the-timerange-earliest-and-latest-in/m-p/201725#M58457</link>
    <description>&lt;P&gt;Bombastic. That is the one. Thank you very much.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2016 17:35:07 GMT</pubDate>
    <dc:creator>Olli1919</dc:creator>
    <dc:date>2016-02-11T17:35:07Z</dc:date>
    <item>
      <title>Is it possible to retrieve the timerange (earliest and latest) in a search to use as a value for eval later?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-retrieve-the-timerange-earliest-and-latest-in/m-p/201723#M58455</link>
      <description>&lt;P&gt;Hi fellow splunkies,&lt;/P&gt;

&lt;P&gt;Do you know if it is possible to retrieve the timerange from the search (earliest and latest) to reuse them as fields in the search later?&lt;/P&gt;

&lt;P&gt;I.e. like time() or now():&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup my_static_list| eval mysearch_starttime=earliest() | search my_static_list_timestampstart&amp;gt;mysearch_starttime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The reason behind this: I am feeding a static list which also contains a timeframe for each entry. The entry is only valid for this timeframe. The static list inputlookup is used in a subsearch to filter the outer search. So depending on when the outer search (which is scheduled) runs, only a subset of the inputlookup should be pulled. Basically a check is needed, if the two sliding timeframes (of inputlookup entries and outer search timeframe) overlap.&lt;/P&gt;

&lt;P&gt;Thanks for you help.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-retrieve-the-timerange-earliest-and-latest-in/m-p/201723#M58455</guid>
      <dc:creator>Olli1919</dc:creator>
      <dc:date>2016-02-11T17:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to retrieve the timerange (earliest and latest) in a search to use as a value for eval later?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-retrieve-the-timerange-earliest-and-latest-in/m-p/201724#M58456</link>
      <description>&lt;P&gt;Did you check the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/Addinfo"&gt;addinfo&lt;/A&gt; command?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-retrieve-the-timerange-earliest-and-latest-in/m-p/201724#M58456</guid>
      <dc:creator>kurdbahr</dc:creator>
      <dc:date>2016-02-11T17:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to retrieve the timerange (earliest and latest) in a search to use as a value for eval later?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-retrieve-the-timerange-earliest-and-latest-in/m-p/201725#M58457</link>
      <description>&lt;P&gt;Bombastic. That is the one. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-retrieve-the-timerange-earliest-and-latest-in/m-p/201725#M58457</guid>
      <dc:creator>Olli1919</dc:creator>
      <dc:date>2016-02-11T17:35:07Z</dc:date>
    </item>
  </channel>
</rss>

