<?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 How to pull latest event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-latest-event/m-p/529003#M149350</link>
    <description>&lt;P&gt;I have a search/dash board that will show data over the last 30 days, the search is as followed&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=server EventCode=5829
| stats count by ComputerName, Domain, Machine_SamAccountName, Machine_Operating_System &lt;/LI-CODE&gt;
&lt;P&gt;this search will give me roughly 70~ events a month, the problem is now my customer would like to have the time stamp put on the table, (which is easy by putting just the "_time" field in there) my problem that I am running into is that it will give me 10,000 results now! I showed the customer this and they said it would be fine for me to show just the latest event in the last 30 days for each Machine_SamAccountName.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is how????&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 17:01:30 GMT</pubDate>
    <dc:creator>eb1929</dc:creator>
    <dc:date>2020-11-11T17:01:30Z</dc:date>
    <item>
      <title>How to pull latest event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-latest-event/m-p/529003#M149350</link>
      <description>&lt;P&gt;I have a search/dash board that will show data over the last 30 days, the search is as followed&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=server EventCode=5829
| stats count by ComputerName, Domain, Machine_SamAccountName, Machine_Operating_System &lt;/LI-CODE&gt;
&lt;P&gt;this search will give me roughly 70~ events a month, the problem is now my customer would like to have the time stamp put on the table, (which is easy by putting just the "_time" field in there) my problem that I am running into is that it will give me 10,000 results now! I showed the customer this and they said it would be fine for me to show just the latest event in the last 30 days for each Machine_SamAccountName.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is how????&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 17:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-latest-event/m-p/529003#M149350</guid>
      <dc:creator>eb1929</dc:creator>
      <dc:date>2020-11-11T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull latest event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-latest-event/m-p/529024#M149356</link>
      <description>&lt;P&gt;Does this fulfill the requirements?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=server EventCode=5829
| stats count, latest(_time) as _time by ComputerName, Domain, Machine_SamAccountName, Machine_Operating_System &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Nov 2020 19:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-latest-event/m-p/529024#M149356</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-11T19:32:15Z</dc:date>
    </item>
  </channel>
</rss>

