<?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 do you separate computer login attempts from real user login attempts? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395648#M70559</link>
    <description>&lt;P&gt;Thanks!! that works perfectly!!&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2018 16:48:22 GMT</pubDate>
    <dc:creator>mpasha</dc:creator>
    <dc:date>2018-11-19T16:48:22Z</dc:date>
    <item>
      <title>How do you separate computer login attempts from real user login attempts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395645#M70556</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;

&lt;P&gt;I am trying to monitor our User Account logon activity through Splunk. As you might know, Active directory creates a huge amount of account logon events when a computer tries to access the network and does account activities as well. The only difference is that the Computer accounts have a "$" at the end of their names. this behavior will cause a lot of confusion for the teams when they are monitoring the environments for "Real" user activities.&lt;/P&gt;

&lt;P&gt;I was thinking to create a field at indexing time "using an index time transform" to tag accounts with a $ in their names.&lt;BR /&gt;
Here is the relevant part of the config in transforms.conf, props.conf and Fields.conf&lt;BR /&gt;
&lt;STRONG&gt;Transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[AD_Computer]
REGEX = (?ms)\s+((Logon Account|Account Name):\s+\w+(\$)) \\this Regex will search for $ in the Account Name or Logon Account 
FORMAT = AD_Server::1
WRITE_META = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Props.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-ISComputer= AD_Computer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the Fields.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[AD_Server]
INDEXED = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here are the problems now:&lt;BR /&gt;
1- The new tag "AD_Server"can not be found in the list of fields, but if I type "AD_Server=1" in the search bar, then i see some results.&lt;BR /&gt;
2- the main purpose of this new field/tag was to be able to exclude the computer accounts from the search. However, when i add:&lt;BR /&gt;
&lt;STRONG&gt;"AD_Server!=1"&lt;/STRONG&gt; no results are returned!!&lt;/P&gt;

&lt;P&gt;is there a way to say, if the Regex does not match a $, then the value for AD_Server is zero?&lt;/P&gt;

&lt;P&gt;I was wondering if you have a better method to filter out these computer accounts or make the method i explained work properly.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395645#M70556</guid>
      <dc:creator>mpasha</dc:creator>
      <dc:date>2020-09-29T22:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you separate computer login attempts from real user login attempts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395646#M70557</link>
      <description>&lt;P&gt;What's wrong with filtering names at search time?  &lt;CODE&gt;index=wineventlog sourcetype=WinEventLog:Security NOT Account_Name="*$" | ...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 00:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395646#M70557</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-11-17T00:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you separate computer login attempts from real user login attempts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395647#M70558</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;'s very valid point aside... You should know that there are two ways of searching for a field not equal to a particular value in Splunk, and their semantics are slightly different:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;AD_Server!=1&lt;/CODE&gt; -&amp;gt; Means find all events that have a field named AD_Server with a value that is not equal to 1&lt;/P&gt;

&lt;P&gt;whereas&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;NOT AD_Server=1&lt;/CODE&gt; -&amp;gt; Means find all events that do not have a field named AD_Server with value equal to 1&lt;/P&gt;

&lt;P&gt;It's very slight, but only the second form will find those events where the field AD_Server is not defined... the first form it will only return events that have a field named AD_Server. (which since you're only creating the field when you're assigning 1 to it, you want the second form)&lt;/P&gt;

&lt;P&gt;You could indeed setup a second transform that would match only if the username does not contain a $... which likely would be a rather expensive regex, possibly involving backreferences... and you would have to run both the AD_Computer and the NOT AD_Computer regexes... Or you would just need to change your filter a bit, which might be the easier option.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395647#M70558</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2020-09-29T22:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you separate computer login attempts from real user login attempts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395648#M70559</link>
      <description>&lt;P&gt;Thanks!! that works perfectly!!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 16:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-separate-computer-login-attempts-from-real-user-login/m-p/395648#M70559</guid>
      <dc:creator>mpasha</dc:creator>
      <dc:date>2018-11-19T16:48:22Z</dc:date>
    </item>
  </channel>
</rss>

