<?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: Latest time as a field value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20769#M3047</link>
    <description>&lt;P&gt;no... the latest time is the time from the timerange picker... for example when a custom time is chosen and the latest time is specified for a specific month...&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2012 12:49:56 GMT</pubDate>
    <dc:creator>kenchisho</dc:creator>
    <dc:date>2012-07-30T12:49:56Z</dc:date>
    <item>
      <title>Latest time as a field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20764#M3042</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I have a question for You, if anyone has had a similar requirement...&lt;/P&gt;

&lt;P&gt;I need to use the "latest" time of a search, what ever it may be, as a field value to get the day diff between a certain datetime field in the data from the latest time of the search... is this possible?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 11:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20764#M3042</guid>
      <dc:creator>kenchisho</dc:creator>
      <dc:date>2012-07-30T11:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Latest time as a field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20765#M3043</link>
      <description>&lt;P&gt;The time field in Splunk is an epoch time, counting number of seconds since January 1, 1970 in GMT.  This means that it's just a number, so the latest time in a search is the max() of the _time field.  Note that you can get the time at which the search is run by doing something like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
... | eval search_time=now() | ...&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 12:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20765#M3043</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-07-30T12:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Latest time as a field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20766#M3044</link>
      <description>&lt;P&gt;Thanks for the quick reply... &lt;/P&gt;

&lt;P&gt;that comes close but not quite what I am looking for...&lt;/P&gt;

&lt;P&gt;example...&lt;/P&gt;

&lt;P&gt;the max(_time) of the events is 15.08.2011&lt;/P&gt;

&lt;P&gt;the latest time of the search is 31.08.2011&lt;/P&gt;

&lt;P&gt;i run this search on the 15.09.2011&lt;/P&gt;

&lt;P&gt;i am looking for the value 31.08.2011, in epochtime format ofcourse,... this is not the max(_time) of the events or now()... I am open to any suggestions to get this working...&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 12:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20766#M3044</guid>
      <dc:creator>kenchisho</dc:creator>
      <dc:date>2012-07-30T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Latest time as a field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20767#M3045</link>
      <description>&lt;P&gt;When you say "the latest time of the search is 31.08.2011", do you mean that this is a saved search (or summary indexing search) and the "most recent" run was 31.08.2011?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 12:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20767#M3045</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-07-30T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Latest time as a field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20768#M3046</link>
      <description>&lt;P&gt;Have you tried below which will give the latest&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | stats first(_time) as latest_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jul 2012 12:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20768#M3046</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-07-30T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Latest time as a field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20769#M3047</link>
      <description>&lt;P&gt;no... the latest time is the time from the timerange picker... for example when a custom time is chosen and the latest time is specified for a specific month...&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 12:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20769#M3047</guid>
      <dc:creator>kenchisho</dc:creator>
      <dc:date>2012-07-30T12:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Latest time as a field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20770#M3048</link>
      <description>&lt;P&gt;Thanks for the help guys... just to update you on this... it is possible using "| addinfo" and splunk adds a column "info_max_time" which is the "latest" time of the search...&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 12:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Latest-time-as-a-field-value/m-p/20770#M3048</guid>
      <dc:creator>kenchisho</dc:creator>
      <dc:date>2012-07-30T12:54:01Z</dc:date>
    </item>
  </channel>
</rss>

