<?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 search same event occur four times in five minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391153#M113884</link>
    <description>&lt;P&gt;i got a mission from my manager,  search the the same account login failure event occur four times in per five minutes , could you please help me or give me some suggestion ? thanks a lot, from a beginner.&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 09:20:50 GMT</pubDate>
    <dc:creator>lllidan</dc:creator>
    <dc:date>2018-05-15T09:20:50Z</dc:date>
    <item>
      <title>how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391153#M113884</link>
      <description>&lt;P&gt;i got a mission from my manager,  search the the same account login failure event occur four times in per five minutes , could you please help me or give me some suggestion ? thanks a lot, from a beginner.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 09:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391153#M113884</guid>
      <dc:creator>lllidan</dc:creator>
      <dc:date>2018-05-15T09:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391154#M113885</link>
      <description>&lt;P&gt;you can try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;your_index&amp;gt; "login failure" 
| timechart span=5m count 
| where count=4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change the condition &lt;CODE&gt;count=4&lt;/CODE&gt; according to your requirement.&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 09:48:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391154#M113885</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-05-15T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391155#M113886</link>
      <description>&lt;P&gt;@lllidan you would need to add more details around the &lt;CODE&gt;data&lt;/CODE&gt; and &lt;CODE&gt;fields&lt;/CODE&gt; for us to assist you better. Mask/Anonymize any sensitive information before posting.&lt;/P&gt;

&lt;P&gt;Assuming account field is AccountName&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourBaseSearchForLoginFailure&amp;gt; AccountName=*
| bin _time span=5m
| stats count as LoginFailure by _time AccountName
| where LoginFailure&amp;gt;=4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 10:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391155#M113886</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-15T10:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391156#M113887</link>
      <description>&lt;P&gt;Note that this would miss cases where the 4 attempts are spread across two 5 minute windows. But it is a simple way to start.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 11:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391156#M113887</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-15T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391157#M113888</link>
      <description>&lt;P&gt;To analyse this with a sliding 5 minute window (rather than simply using a timechart, or manually grouping events into 5 minute bins), you can use something like the following (adjust it to your situation):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...&amp;lt;your base search here&amp;gt;...
| streamstats count time_window=5m by user
| where count &amp;gt;=4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 11:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391157#M113888</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-15T11:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391158#M113889</link>
      <description>&lt;P&gt;thanks for your help, and below is my base search:&lt;/P&gt;

&lt;P&gt;EventCode=4625 Keyword=Logon_Failed &lt;/P&gt;

&lt;P&gt;and i wanna to display the Account_Name or Hostname on the column via timechart or Dashboard.&lt;/P&gt;

&lt;P&gt;otherwise, " 4 attempts in 5 minutes" means after the first attempt , in 5 minutes occur other 3 times attempts , how can i define the 5 minutes time period after the first attempt ?&lt;/P&gt;

&lt;P&gt;do you have some good suggestion ? &lt;BR /&gt;
thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 06:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391158#M113889</guid>
      <dc:creator>lllidan</dc:creator>
      <dc:date>2018-05-16T06:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391159#M113890</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;your_index&amp;gt; EventCode=4625 Keyword=Logon_Failed | timechart span=5m count by account_name where count&amp;gt;=4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 May 2018 06:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391159#M113890</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-05-16T06:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391160#M113891</link>
      <description>&lt;P&gt;thanks for your help, and below is my base search:&lt;/P&gt;

&lt;P&gt;EventCode=4625 Keyword=Logon_Failed &lt;/P&gt;

&lt;P&gt;and i wanna to display the Account_Name or Hostname on the column via timechart or Dashboard.&lt;/P&gt;

&lt;P&gt;otherwise, " 4 attempts in 5 minutes" means after the first attempt , in 5 minutes occur other 3 times attempts , how can i define the 5 minutes time period after the first attempt ?&lt;/P&gt;

&lt;P&gt;do you have some good suggestion ? &lt;BR /&gt;
thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 06:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391160#M113891</guid>
      <dc:creator>lllidan</dc:creator>
      <dc:date>2018-05-16T06:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391161#M113892</link>
      <description>&lt;P&gt;@FrankVl, I think &lt;CODE&gt;count=4 will give all the users with 4 or more login failed in 5 minute window&lt;/CODE&gt; and that should be the where condition i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where count=4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;count&amp;gt;=4&lt;/CODE&gt; will not add any value since failed attempt 1,2 and 3 will be removed.&lt;/P&gt;

&lt;P&gt;For details &lt;CODE&gt;| streamstats count time_window=5m by user&lt;/CODE&gt; can be used as it is possibly add a &lt;CODE&gt;| eval Threshold=4&lt;/CODE&gt; to see at what point of time did the failed login attempt cross 4 or more.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 18:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391161#M113892</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-16T18:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391162#M113893</link>
      <description>&lt;P&gt;@FrankVl 's suggestion should do it! Try out and accept his answer if it works for you!&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 18:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391162#M113893</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-16T18:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to search same event occur four times in five minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391163#M113894</link>
      <description>&lt;P&gt;Yeah, that makes sense. doing &lt;CODE&gt;&amp;gt;=4&lt;/CODE&gt; just gives a lot of extra records for users that failed more than 4 times. Filtering for just the &lt;CODE&gt;=4&lt;/CODE&gt; shows the event that caused it to meet the threshold.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 09:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-same-event-occur-four-times-in-five-minutes/m-p/391163#M113894</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-17T09:07:42Z</dc:date>
    </item>
  </channel>
</rss>

