<?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 Splunk Query For Admin Who Unlocked Account in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458948#M218255</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I created a query that looks for event 4767 (A user account was unlocked) and it returns the date/time of the event, the Administrator (Account_Name) who unlocked the account and the user who's account was unlocked.  The problem is that it also lists the user's account under the "who unlocked the user" column.  I think the query is pulling that information from the Target Account --&amp;gt; Account Name field.  How do I exclude that from my results?&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" EventCode=4767 user=$users$ | stats count by _time, Account_Name, user | fields - count | sort - _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 May 2019 15:55:50 GMT</pubDate>
    <dc:creator>k45bryant</dc:creator>
    <dc:date>2019-05-14T15:55:50Z</dc:date>
    <item>
      <title>Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458948#M218255</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I created a query that looks for event 4767 (A user account was unlocked) and it returns the date/time of the event, the Administrator (Account_Name) who unlocked the account and the user who's account was unlocked.  The problem is that it also lists the user's account under the "who unlocked the user" column.  I think the query is pulling that information from the Target Account --&amp;gt; Account Name field.  How do I exclude that from my results?&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" EventCode=4767 user=$users$ | stats count by _time, Account_Name, user | fields - count | sort - _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 15:55:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458948#M218255</guid>
      <dc:creator>k45bryant</dc:creator>
      <dc:date>2019-05-14T15:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458949#M218256</link>
      <description>&lt;P&gt;can you share some sample events?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 17:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458949#M218256</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-14T17:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458950#M218257</link>
      <description>&lt;P&gt;Are  you asking for the results after I run my query?  I am not sure what you mean by sample events.  Can you clarify your question?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 17:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458950#M218257</guid>
      <dc:creator>k45bryant</dc:creator>
      <dc:date>2019-05-14T17:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458951#M218258</link>
      <description>&lt;P&gt;the data on which you are performing search&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 17:06:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458951#M218258</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-14T17:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458952#M218259</link>
      <description>&lt;P&gt;Sure. Here you go:&lt;/P&gt;
&lt;P&gt;5/13/19&lt;BR /&gt;3:50:35.000 PM&lt;BR /&gt;&lt;BR /&gt;05/13/2019 03:50:35 PM&lt;BR /&gt;LogName=Security&lt;BR /&gt;SourceName=Microsoft Windows security auditing.&lt;BR /&gt;EventCode=4767&lt;BR /&gt;EventType=0&lt;BR /&gt;Type=Information&lt;BR /&gt;ComputerName=x.com&lt;BR /&gt;TaskCategory=User Account Management&lt;BR /&gt;OpCode=Info&lt;BR /&gt;RecordNumber=xxx&lt;BR /&gt;Keywords=Audit Success&lt;BR /&gt;Message=A user account was unlocked.&lt;/P&gt;
&lt;P&gt;Subject:&lt;BR /&gt;Security ID: xxx&lt;BR /&gt;Account Name: xx&lt;BR /&gt;Account Domain: LANS&lt;BR /&gt;Logon ID: xx&lt;/P&gt;
&lt;P&gt;Target Account:&lt;BR /&gt;Security ID: xx&lt;BR /&gt;Account Name:xx&lt;BR /&gt;Account Domain: LANS&lt;BR /&gt;Collapse&lt;BR /&gt;host = xx source = WinEventLog:Security sourcetype = WinEventLog:Security src_user = xx user = xx&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458952#M218259</guid>
      <dc:creator>k45bryant</dc:creator>
      <dc:date>2023-01-25T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458953#M218260</link>
      <description>&lt;P&gt;you will have to apply some regex to get the Account Name fields for user(based on target account name) and Admin (based on Subject Account Name)&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 18:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458953#M218260</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-14T18:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458954#M218261</link>
      <description>&lt;P&gt;I am a newbie to splunk and have no idea how to apply regex to my query.  Can you help me?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 18:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458954#M218261</guid>
      <dc:creator>k45bryant</dc:creator>
      <dc:date>2019-05-14T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458955#M218262</link>
      <description>&lt;P&gt;Your answer is in the already extracted fields. &lt;/P&gt;

&lt;P&gt;index="wineventlog" EventCode=4767 user=$users$  | stats count by _time, src_user, user | fields - count | sort - _time&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458955#M218262</guid>
      <dc:creator>aromanauskas</dc:creator>
      <dc:date>2020-09-30T00:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query For Admin Who Unlocked Account</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458956#M218263</link>
      <description>&lt;P&gt;That worked!  Thank you soooo much.  You ROCK!&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 19:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-For-Admin-Who-Unlocked-Account/m-p/458956#M218263</guid>
      <dc:creator>k45bryant</dc:creator>
      <dc:date>2019-05-14T19:58:12Z</dc:date>
    </item>
  </channel>
</rss>

