<?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 Validate success versus failed logins in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327377#M10841</link>
    <description>&lt;P&gt;I was asked if we can run a report / create an alert to act on the following:&lt;/P&gt;

&lt;P&gt;Accounts that have had failed logins, but never a successful login, within a defined time window.   The goal is to determine is an account has ever been used successfully, and if it has not, then it can be sent to the access management team to review.&lt;/P&gt;

&lt;P&gt;In my data, I have the default _time but also have a time field from the source of "LoginAttemptDateTime".  For login status, I have a field called "LoginStatus", and of course user field of "User".&lt;/P&gt;

&lt;P&gt;Looking at some of the Brute force posts offered ideas, but nothing that gave me exactly what I was asked for.  Hoping someone has another idea.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 15:08:24 GMT</pubDate>
    <dc:creator>bworrellZP</dc:creator>
    <dc:date>2018-04-11T15:08:24Z</dc:date>
    <item>
      <title>Validate success versus failed logins</title>
      <link>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327377#M10841</link>
      <description>&lt;P&gt;I was asked if we can run a report / create an alert to act on the following:&lt;/P&gt;

&lt;P&gt;Accounts that have had failed logins, but never a successful login, within a defined time window.   The goal is to determine is an account has ever been used successfully, and if it has not, then it can be sent to the access management team to review.&lt;/P&gt;

&lt;P&gt;In my data, I have the default _time but also have a time field from the source of "LoginAttemptDateTime".  For login status, I have a field called "LoginStatus", and of course user field of "User".&lt;/P&gt;

&lt;P&gt;Looking at some of the Brute force posts offered ideas, but nothing that gave me exactly what I was asked for.  Hoping someone has another idea.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327377#M10841</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2018-04-11T15:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Validate success versus failed logins</title>
      <link>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327378#M10842</link>
      <description>&lt;P&gt;I would run a distinct count on LoginStatus per user and retrieve the LoginStatus values then keep the one with distinct count equal to one (only Successful or Failed logins) and values set to "Failed":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex sourcetype=yoursourcetype 
| stats dc(LoginStatus) as dc,  values(LoginStatus) as LoginStatus by User
| search dc=1 AND LoginStatus="Failed"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327378#M10842</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-11T15:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Validate success versus failed logins</title>
      <link>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327379#M10843</link>
      <description>&lt;P&gt;Okay, this is good, they (management) liked it.  They had two questions.  Can we add the amount of times the login was tried, and can we also add the ones that did login successfully, and show the failed counts for those.  &lt;/P&gt;

&lt;P&gt;I am going to try and mess with this some, as the distinct count option was not one I had thought of.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 11:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327379#M10843</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2018-04-12T11:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Validate success versus failed logins</title>
      <link>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327380#M10844</link>
      <description>&lt;P&gt;I would try something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=yourindex sourcetype=yoursourcetype 
| stats count(eval(LoginStatus="succeeded")) as succeeded_logins,  count(eval(LoginStatus="failed")) as failed_logins, count(LoginAttemptDateTime) AS total_attempts BY User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With this you can set filters like:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;
| search succeeded_logins=0 AND failed_logins&amp;gt;0&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;2.&lt;BR /&gt;
| search succeded_logins&amp;gt;0&lt;BR /&gt;
| stats count avg(total_attempts) AS avg_attempts&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327380#M10844</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2020-09-29T18:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Validate success versus failed logins</title>
      <link>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327381#M10845</link>
      <description>&lt;P&gt;Excellent, your suggestion was able to get me where I needed you go.  Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 10:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Validate-success-versus-failed-logins/m-p/327381#M10845</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2018-04-13T10:01:58Z</dc:date>
    </item>
  </channel>
</rss>

