<?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: How to exclude computer account name from results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269228#M80970</link>
    <description>&lt;P&gt;running both search as result I obtained&lt;/P&gt;

&lt;P&gt;Domain controller computer account &lt;BR /&gt;
user name&lt;/P&gt;

&lt;P&gt;domainctrl1$&lt;BR /&gt;
j.doe&lt;/P&gt;

&lt;P&gt;domainctrl2$&lt;BR /&gt;
s.brown&lt;/P&gt;

&lt;P&gt;domainctrl1$&lt;BR /&gt;
j.smith&lt;/P&gt;

&lt;P&gt;I am looking just for the list of the user name&lt;/P&gt;

&lt;P&gt;j.doe&lt;BR /&gt;
s.brown&lt;BR /&gt;
j.smith&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 14:09:56 GMT</pubDate>
    <dc:creator>arkonner</dc:creator>
    <dc:date>2016-03-30T14:09:56Z</dc:date>
    <item>
      <title>How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269225#M80967</link>
      <description>&lt;P&gt;I am running a very simple search to determine accounts locked out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server01 OR server02 OR server03 OR server04 EventCode=4740 Security_ID="*" Account_Name="*"   | Table Account_Name  _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the results as Account_Name I would like to exclude the computer account name (Server01$.....) considering that the user account name is related to the computer account name. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 08:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269225#M80967</guid>
      <dc:creator>arkonner</dc:creator>
      <dc:date>2016-03-29T08:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269226#M80968</link>
      <description>&lt;P&gt;You can use the where command for that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server01 OR server02 OR server03 OR server04 EventCode=4740 Security_ID="" Account_Name="" 
| where NOT Account_Name=Computer_Name
| Table Account_Name _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or even an eval:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server01 OR server02 OR server03 OR server04 EventCode=4740 Security_ID="" Account_Name="" 
| eval Same = if(match(Account_Name,Computer_Name),1,0)
| search Same = 0
| Table Account_Name _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2016 14:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269226#M80968</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-03-29T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269227#M80969</link>
      <description>&lt;P&gt;try this? a mix of rex and fields trickery&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server01 OR server02 OR server03 OR server04 EventCode=4740 Security_ID="" Account_Name="" | Table Account_Name _time | rex field=Account_Name "(?&amp;lt;user&amp;gt;\$\w+)" | fields - Account_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This output should give you a new field called User and Omit the Server## &lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269227#M80969</guid>
      <dc:creator>peauxdunk</dc:creator>
      <dc:date>2016-03-29T15:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269228#M80970</link>
      <description>&lt;P&gt;running both search as result I obtained&lt;/P&gt;

&lt;P&gt;Domain controller computer account &lt;BR /&gt;
user name&lt;/P&gt;

&lt;P&gt;domainctrl1$&lt;BR /&gt;
j.doe&lt;/P&gt;

&lt;P&gt;domainctrl2$&lt;BR /&gt;
s.brown&lt;/P&gt;

&lt;P&gt;domainctrl1$&lt;BR /&gt;
j.smith&lt;/P&gt;

&lt;P&gt;I am looking just for the list of the user name&lt;/P&gt;

&lt;P&gt;j.doe&lt;BR /&gt;
s.brown&lt;BR /&gt;
j.smith&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269228#M80970</guid>
      <dc:creator>arkonner</dc:creator>
      <dc:date>2016-03-30T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269229#M80971</link>
      <description>&lt;P&gt;Hi, I'm not sure what you mean but if you just need the list of usernames then simply pipe the last line in your query to fields or table followed by the field name you want to display, you can even remove duplicates with dedup. For instance:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search here
| dedup UserName
| table UserName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that's not what you are looking for then it might be easier if you paste your query here.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 09:31:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269229#M80971</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-04-01T09:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269230#M80972</link>
      <description>&lt;P&gt;How about?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server01 OR server02 OR server03 OR server04 EventCode=4740 Security_ID="*" Account_Name!="*Server01$*"| stats values(Account_Name) as List | mvexpand List
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Apr 2016 13:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269230#M80972</guid>
      <dc:creator>Stevelim</dc:creator>
      <dc:date>2016-04-01T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269231#M80973</link>
      <description>&lt;P&gt;@Stevelim I've been looking for this answer for 2 days now.  You saved me!!!  Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 20:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269231#M80973</guid>
      <dc:creator>tecooper</dc:creator>
      <dc:date>2018-12-17T20:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269232#M80974</link>
      <description>&lt;P&gt;Great to hear!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 00:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269232#M80974</guid>
      <dc:creator>Stevelim</dc:creator>
      <dc:date>2018-12-21T00:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269233#M80975</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSpecifyAnIndex sourcetype=AndSourcetypeToo (server01 OR server02 OR server03 OR server04) EventCode=4740 Security_ID="*" Account_Name!="*$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Dec 2018 00:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269233#M80975</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-12-21T00:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269234#M80976</link>
      <description>&lt;P&gt;Reviving this as I am seeking an answer to the same issue and have yet to be able to find it.&lt;/P&gt;

&lt;P&gt;What arkonner was saying is that they don't want the computer accounts to show in the results.  I am trying to do the same but simply ignoring values that end in "$" is sloppy and could potentially hide valid results.&lt;/P&gt;

&lt;P&gt;This search highlights the issue, I do not want to display results where the user matches any Workstation_Name appended with "$".  The only way to make this work that I can think of is to build an array of Workstation_Name values and elminate users that match any value in the array...  but I'm relatively new to Splunk and don't know how to do that yet.&lt;/P&gt;

&lt;P&gt;index=wineventlog sourcetype="wineventlog:security"  src_ip= | stats count by Workstation_Name user&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/269234#M80976</guid>
      <dc:creator>sicknss</dc:creator>
      <dc:date>2020-09-29T23:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude computer account name from results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/528321#M149169</link>
      <description>&lt;P&gt;I like Woodcocks reply, the component below was most valuable for eliminating computer account names&lt;/P&gt;&lt;PRE&gt;Account_Name!="*$"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 13:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-computer-account-name-from-results/m-p/528321#M149169</guid>
      <dc:creator>lazer</dc:creator>
      <dc:date>2020-11-06T13:10:34Z</dc:date>
    </item>
  </channel>
</rss>

