<?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: Filter account domain in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198674#M39372</link>
    <description>&lt;P&gt;Yes, but I'm guessing about the specifics you're after.&lt;/P&gt;

&lt;P&gt;If you are talking about Windows 2K8 or Vista EventCode 4740, then you would filter on the Account_Domain field.  &lt;/P&gt;

&lt;P&gt;In this example you would change 'domain1' to one of your domains.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=4740 Account_Domain=domain1 | eval Account_Name=mvindex(Account_Name,1)| table _time Account_Domain Account_Name Caller_Computer_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to have the results sorted by domain, then use something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=4740 | eval Account_Name=mvindex(Account_Name,1)| table Account_Domain _time Account_Name Caller_Computer_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are talking about older Windows systems, then you would filter on the Caller_Domain field.  For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=644 | table Caller_Domain _time Target_Account_Name Caller_Machine_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have a mix, then you can combine the two like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main  EventCode=4740 | eval Account_Name=mvindex(Account_Name,1)|eval Source=coalesce
(Caller_Computer_Name,ComputerName)| table Account_Domain _time Account_Name Source| rename Account_Domain AS Domain Account_Name AS Account |append [search index=main EventCode=644 | table Caller_Domain _time Target_Account_Name Caller_Machine_Name | rename Caller_Domain AS Domain Target_Account_Name AS Account Caller_Machine_Name AS Source]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Jan 2014 20:26:55 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2014-01-09T20:26:55Z</dc:date>
    <item>
      <title>Filter account domain</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198673#M39371</link>
      <description>&lt;P&gt;I, i need to make a dashboard for accounts locked and i would like to had a filter by account domain.&lt;BR /&gt;
Is this possible? Can i make a search by account domain?&lt;/P&gt;

&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 10:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198673#M39371</guid>
      <dc:creator>borgeshe</dc:creator>
      <dc:date>2014-01-09T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter account domain</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198674#M39372</link>
      <description>&lt;P&gt;Yes, but I'm guessing about the specifics you're after.&lt;/P&gt;

&lt;P&gt;If you are talking about Windows 2K8 or Vista EventCode 4740, then you would filter on the Account_Domain field.  &lt;/P&gt;

&lt;P&gt;In this example you would change 'domain1' to one of your domains.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=4740 Account_Domain=domain1 | eval Account_Name=mvindex(Account_Name,1)| table _time Account_Domain Account_Name Caller_Computer_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to have the results sorted by domain, then use something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=4740 | eval Account_Name=mvindex(Account_Name,1)| table Account_Domain _time Account_Name Caller_Computer_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are talking about older Windows systems, then you would filter on the Caller_Domain field.  For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=644 | table Caller_Domain _time Target_Account_Name Caller_Machine_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have a mix, then you can combine the two like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main  EventCode=4740 | eval Account_Name=mvindex(Account_Name,1)|eval Source=coalesce
(Caller_Computer_Name,ComputerName)| table Account_Domain _time Account_Name Source| rename Account_Domain AS Domain Account_Name AS Account |append [search index=main EventCode=644 | table Caller_Domain _time Target_Account_Name Caller_Machine_Name | rename Caller_Domain AS Domain Target_Account_Name AS Account Caller_Machine_Name AS Source]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2014 20:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198674#M39372</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-01-09T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter account domain</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198675#M39373</link>
      <description>&lt;P&gt;Thank you for your most appreciated help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198675#M39373</guid>
      <dc:creator>borgeshe</dc:creator>
      <dc:date>2014-01-10T10:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter account domain</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198676#M39374</link>
      <description>&lt;P&gt;No problem.  Don't forget to accept the answer:)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 14:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-account-domain/m-p/198676#M39374</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-01-10T14:07:27Z</dc:date>
    </item>
  </channel>
</rss>

