<?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 count similar events per 5 minutes in a 60 minute search? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212909#M7941</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin _time span=5m 
| stats count, latest(_time) as "latest login" by _time acddev, acduser, acdfrom, acdreason
| table _time "latest login" acddev acduser acdfrom acdreason count
| sort -_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 05 Aug 2016 12:37:06 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-08-05T12:37:06Z</dc:date>
    <item>
      <title>How to count similar events per 5 minutes in a 60 minute search?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212908#M7940</link>
      <description>&lt;P&gt;Hi, I'm trying to have a table of failed login attempts. The table shows all failed login attempts for the last 60 minutes but, I want to group similar attempts by device, username used, attempt from and reason for failure.&lt;/P&gt;

&lt;P&gt;I've already managed to group them but, I don't want the table to show the count for similar events for the last 60 minutes. Instead, I want it to group by similar events for last 5 minutes WHILE showing all the attempts for the last 60 minutes. I'm not even sure this is possible. I tried bucket _time span=5m but, it still groups by the whole 60 minutes. Here's what I have so far;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats count, first(_time) as "_time" by acddev, acduser, acdfrom, acdreason
 | table _time acddev acduser acdfrom acdreason count
 | sort -_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: I've managed to get the bucket to work by changing &lt;CODE&gt;stats count, first(_time) as "_time" by acddev, acduser, acdfrom, acdreason&lt;/CODE&gt; to &lt;CODE&gt;stats count by _time, acddev, acduser, acdfrom, acdreason&lt;/CODE&gt; but, I don't want to show the time in 5 minute intervals, I want to show the time of the latest attempt in that group of events. Is this possible?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 01:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212908#M7940</guid>
      <dc:creator>ZacEsa</dc:creator>
      <dc:date>2016-08-05T01:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to count similar events per 5 minutes in a 60 minute search?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212909#M7941</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin _time span=5m 
| stats count, latest(_time) as "latest login" by _time acddev, acduser, acdfrom, acdreason
| table _time "latest login" acddev acduser acdfrom acdreason count
| sort -_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 12:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212909#M7941</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-05T12:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to count similar events per 5 minutes in a 60 minute search?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212910#M7942</link>
      <description>&lt;P&gt;Doesn't work, both &lt;CODE&gt;_time&lt;/CODE&gt; and &lt;CODE&gt;"latest login"&lt;/CODE&gt; gives out the same value. I believe it's because of the &lt;CODE&gt;bin/bucket&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 00:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212910#M7942</guid>
      <dc:creator>ZacEsa</dc:creator>
      <dc:date>2016-08-08T00:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to count similar events per 5 minutes in a 60 minute search?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212911#M7943</link>
      <description>&lt;P&gt;Have you tried &lt;CODE&gt;transaction&lt;/CODE&gt;?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction maxspan=5m acddev, acduser, acdfrom, acdreason | table _time  acddev acduser acdfrom acdreason count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Aug 2016 01:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212911#M7943</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-08T01:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to count similar events per 5 minutes in a 60 minute search?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212912#M7944</link>
      <description>&lt;P&gt;Transaction isn't showing the count. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 01:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212912#M7944</guid>
      <dc:creator>ZacEsa</dc:creator>
      <dc:date>2016-08-08T01:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count similar events per 5 minutes in a 60 minute search?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212913#M7945</link>
      <description>&lt;P&gt;Transactio will create a event_count field that shows the number of events grouped together&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 02:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212913#M7945</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-08T02:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to count similar events per 5 minutes in a 60 minute search?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212914#M7946</link>
      <description>&lt;P&gt;Thanks! It works! Can you edit your answer and I'll accept it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 07:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-count-similar-events-per-5-minutes-in-a-60-minute-search/m-p/212914#M7946</guid>
      <dc:creator>ZacEsa</dc:creator>
      <dc:date>2016-08-08T07:11:48Z</dc:date>
    </item>
  </channel>
</rss>

