<?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 Account Lockouts Report for Active Directory in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484774#M193464</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm running the following search that gives me accounts that get locked out and targets the specific domain controller that issues the security alert.  I would like to add the time stamps when the user gets locked out:&lt;/P&gt;

&lt;P&gt;(Current search)&lt;BR /&gt;
&lt;STRONG&gt;index=main source=&lt;EM&gt;Security host=&lt;/EM&gt; EventCode=4740 &lt;BR /&gt;
|  stats count by Target_Domain Target_User_Name dvc&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I tried playing around with the following search:&lt;BR /&gt;
&lt;STRONG&gt;index=main source=&lt;EM&gt;Security host=&lt;/EM&gt; EventCode=4740 &lt;BR /&gt;
| eval Account=if(Target_Account_Name!=NULL, Target_Account_Name, user) &lt;BR /&gt;
 | eval Machine=if(Caller_Machine_Name!=NULL, Caller_Machine_Name, Caller_Computer_Name) &lt;BR /&gt;
 | fillnull Value="Unknown" Machine &lt;BR /&gt;
 | eval Time=strftime(_time, "%m/%d/%y %H:%M:%S") &lt;BR /&gt;
 | dedup Time, Account &lt;BR /&gt;
 | dedup Account, Machine &lt;BR /&gt;
 | table Time, Account, Machine&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;(This search gives me the time stamp, the account name, but I don't see the domain controllers from this list). So, is there a way to get the domain controllers (see "current search" added to this?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:14:35 GMT</pubDate>
    <dc:creator>brookshelpdesk</dc:creator>
    <dc:date>2020-09-30T02:14:35Z</dc:date>
    <item>
      <title>Account Lockouts Report for Active Directory</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484774#M193464</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm running the following search that gives me accounts that get locked out and targets the specific domain controller that issues the security alert.  I would like to add the time stamps when the user gets locked out:&lt;/P&gt;

&lt;P&gt;(Current search)&lt;BR /&gt;
&lt;STRONG&gt;index=main source=&lt;EM&gt;Security host=&lt;/EM&gt; EventCode=4740 &lt;BR /&gt;
|  stats count by Target_Domain Target_User_Name dvc&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I tried playing around with the following search:&lt;BR /&gt;
&lt;STRONG&gt;index=main source=&lt;EM&gt;Security host=&lt;/EM&gt; EventCode=4740 &lt;BR /&gt;
| eval Account=if(Target_Account_Name!=NULL, Target_Account_Name, user) &lt;BR /&gt;
 | eval Machine=if(Caller_Machine_Name!=NULL, Caller_Machine_Name, Caller_Computer_Name) &lt;BR /&gt;
 | fillnull Value="Unknown" Machine &lt;BR /&gt;
 | eval Time=strftime(_time, "%m/%d/%y %H:%M:%S") &lt;BR /&gt;
 | dedup Time, Account &lt;BR /&gt;
 | dedup Account, Machine &lt;BR /&gt;
 | table Time, Account, Machine&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;(This search gives me the time stamp, the account name, but I don't see the domain controllers from this list). So, is there a way to get the domain controllers (see "current search" added to this?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484774#M193464</guid>
      <dc:creator>brookshelpdesk</dc:creator>
      <dc:date>2020-09-30T02:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Account Lockouts Report for Active Directory</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484775#M193465</link>
      <description>&lt;P&gt;add the field &lt;CODE&gt;_time&lt;/CODE&gt; to the split &lt;CODE&gt;by&lt;/CODE&gt; &lt;BR /&gt;
&lt;CODE&gt;stats&lt;/CODE&gt; trims automatically all un-declared fields &lt;BR /&gt;
something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=main source=Security host= EventCode=4740
    | stats count by Target_Domain Target_User_Name dvc _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;there are also many answers for this use case in this portal try and search: "4740" in the little search bar on top right&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 00:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484775#M193465</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-09-21T00:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Account Lockouts Report for Active Directory</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484776#M193466</link>
      <description>&lt;P&gt;This was exactly what I was looking for. Just simply adding the  _time gave me the info I needed (so simple).&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 00:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484776#M193466</guid>
      <dc:creator>brookshelpdesk</dc:creator>
      <dc:date>2019-09-21T00:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Account Lockouts Report for Active Directory</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484777#M193467</link>
      <description>&lt;P&gt;Adonio,&lt;/P&gt;

&lt;P&gt;Thank you very much. That gave me the info I needed and all I needed to do was add the &lt;STRONG&gt;_time&lt;/STRONG&gt;....So simple :}&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Bob&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 00:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Account-Lockouts-Report-for-Active-Directory/m-p/484777#M193467</guid>
      <dc:creator>brookshelpdesk</dc:creator>
      <dc:date>2019-09-21T00:37:38Z</dc:date>
    </item>
  </channel>
</rss>

