<?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: Find latest date  for a record in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Find-latest-date-for-a-record/m-p/515556#M87299</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225320"&gt;@Stephen11&lt;/a&gt;&amp;nbsp;, please try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;(index=XXX) AND event="XXXXXX"&amp;nbsp;| stats latest(_time) as latestDate&amp;nbsp; by&amp;nbsp;dvchost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|eval latestDate&amp;nbsp;=strftime(latestDate&amp;nbsp;,"%m/%d/%Y")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Please upvote my response if this resolves the issue.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 21:39:18 GMT</pubDate>
    <dc:creator>Nisha18789</dc:creator>
    <dc:date>2020-08-21T21:39:18Z</dc:date>
    <item>
      <title>Find latest date  for a record</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-latest-date-for-a-record/m-p/515552#M87298</link>
      <description>&lt;P&gt;Tried&amp;nbsp; a couple of functions ... nothing easy...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&amp;nbsp;(index=XXX) AND event="XXXXXX" | eval tim =strftime(_time,"%m/%d/%Y") | eventstats max(tim) as maxDate| stats count by dvchost, maxDate&lt;/P&gt;&lt;P&gt;I need to figure out how to find the most recent records....&amp;nbsp; code does not work... looked at other ways to do it .... nothing easy... help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 21:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-latest-date-for-a-record/m-p/515552#M87298</guid>
      <dc:creator>Stephen11</dc:creator>
      <dc:date>2020-08-21T21:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find latest date  for a record</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-latest-date-for-a-record/m-p/515556#M87299</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225320"&gt;@Stephen11&lt;/a&gt;&amp;nbsp;, please try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;(index=XXX) AND event="XXXXXX"&amp;nbsp;| stats latest(_time) as latestDate&amp;nbsp; by&amp;nbsp;dvchost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|eval latestDate&amp;nbsp;=strftime(latestDate&amp;nbsp;,"%m/%d/%Y")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Please upvote my response if this resolves the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 21:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-latest-date-for-a-record/m-p/515556#M87299</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-21T21:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find latest date  for a record</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-latest-date-for-a-record/m-p/515628#M87307</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you should check also stat latest_time(_time) to see which one is the correct function for this time. Time by time those two gives different value.&amp;nbsp;&lt;BR /&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 10:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-latest-date-for-a-record/m-p/515628#M87307</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-23T10:12:49Z</dc:date>
    </item>
  </channel>
</rss>

