<?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: Failed Logins followed by Success Corp Wifi? in Security</title>
    <link>https://community.splunk.com/t5/Security/Failed-Logins-followed-by-Success-Corp-Wifi/m-p/375560#M12630</link>
    <description>&lt;P&gt;There are a few ways, but I like this one as it is a little simpler to modify for other use cases as well: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Authentication"."Authentication" | stats values(user) values(Calling_Station_ID) count(eval('action'=="success")) as success, count(eval('action'=="failure")) as failure by src | search success&amp;gt;1 failure&amp;gt;20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Mar 2018 18:52:56 GMT</pubDate>
    <dc:creator>mmontgomery_spl</dc:creator>
    <dc:date>2018-03-27T18:52:56Z</dc:date>
    <item>
      <title>Failed Logins followed by Success Corp Wifi?</title>
      <link>https://community.splunk.com/t5/Security/Failed-Logins-followed-by-Success-Corp-Wifi/m-p/375559#M12629</link>
      <description>&lt;P&gt;here is my string i just cant seem to figure out the x number of failures followed by success:&lt;/P&gt;

&lt;P&gt;| tstats count values(Authentication.action) as Action, values(Authentication.user) as User, values(Authentication.Calling_Station_ID) as "MAC Address", values(Authentication.src) as Source from datamodel="Authentication"."Authentication" where (index=acs Authentication.action!=success Authentication.src!=10.242.*) by Authentication.user | brain freeze....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Failed-Logins-followed-by-Success-Corp-Wifi/m-p/375559#M12629</guid>
      <dc:creator>ahmar74</dc:creator>
      <dc:date>2020-09-29T18:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Logins followed by Success Corp Wifi?</title>
      <link>https://community.splunk.com/t5/Security/Failed-Logins-followed-by-Success-Corp-Wifi/m-p/375560#M12630</link>
      <description>&lt;P&gt;There are a few ways, but I like this one as it is a little simpler to modify for other use cases as well: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Authentication"."Authentication" | stats values(user) values(Calling_Station_ID) count(eval('action'=="success")) as success, count(eval('action'=="failure")) as failure by src | search success&amp;gt;1 failure&amp;gt;20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 18:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Failed-Logins-followed-by-Success-Corp-Wifi/m-p/375560#M12630</guid>
      <dc:creator>mmontgomery_spl</dc:creator>
      <dc:date>2018-03-27T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Logins followed by Success Corp Wifi?</title>
      <link>https://community.splunk.com/t5/Security/Failed-Logins-followed-by-Success-Corp-Wifi/m-p/375561#M12631</link>
      <description>&lt;P&gt;I don't think tstats is the way to go since you're analyzing data in aggregate.  You might want to look at the answer Woodcock posted earlier: &lt;A href="https://answers.splunk.com/answers/368521/how-can-i-detect-a-successful-login-after-multiple.html"&gt;https://answers.splunk.com/answers/368521/how-can-i-detect-a-successful-login-after-multiple.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You could approximate it with tstats, but I don't believe you can account for consecutive events using tstats with something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `summariesonly` count as failure_count from datamodel=Authentication where Authentication.action=failure earliest=-4h@h latest=-5m@m by Authentication.user, Authentication.app, _time
| join type=left Authentication.user, Authentication.app, _time  [| tstats `summariesonly` count as success_count from datamodel=Authentication where Authentication.action=success earliest=-4h@h latest=-5m@m by Authentication.user, Authentication.app, _time]
| where failure_count&amp;gt;3 and success_count&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;.. but this won't account for the sequence of events,  it will only find where they occur together, and any sequence spanning one of the time periods won't properly be accounted for.  &lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Failed-Logins-followed-by-Success-Corp-Wifi/m-p/375561#M12631</guid>
      <dc:creator>wenthold</dc:creator>
      <dc:date>2018-03-27T19:14:09Z</dc:date>
    </item>
  </channel>
</rss>

