<?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 would I filter WinEventLog inputs on custom text? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168052#M34026</link>
    <description>&lt;P&gt;Hi, I know this was long ago, but it's the above transform regex for users ending in $&lt;/P&gt;

&lt;P&gt;? &lt;/P&gt;

&lt;P&gt;I have the same problem as the original poster. There is no clear answers anywhere to what I believe would be a very  common problem. &lt;BR /&gt;
I too have tried regex in inputs.conf with no luck. I want to try the props and transforms on the indexers but I want to be sure I'm doing the right thing. &lt;/P&gt;

&lt;P&gt;I don't want to index specifically event codes 4624 and 4634 for users that end in $&lt;BR /&gt;
Eg. P62134$&lt;/P&gt;

&lt;P&gt;Thankyou if you or anyone is out there to clarify&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 12:56:58 GMT</pubDate>
    <dc:creator>gerald_contrera</dc:creator>
    <dc:date>2018-03-08T12:56:58Z</dc:date>
    <item>
      <title>How would I filter WinEventLog inputs on custom text?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168048#M34022</link>
      <description>&lt;P&gt;Using the following inputs.conf on a Splunk forwarder;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [WinEventLog://Security]
    index = wineventlog_test
    start_from = oldest
    current_only = 1
    evt_resolve_ad_obj = 1
    checkpointInterval = 5
    # Windows 7 = 4688, 489
    # Windows XP = 592, 593
    whitelist1 = EventCode="4688|4689|592|593"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will pull the 4 event codes just fine.  However, I am trying to filter any events created by the "NT AUTHORITY\SYSTEM" and "SYSTEM" accounts.&lt;BR /&gt;
The documentation on the WinEventCode input points to using a limited set of specific keys to filter only, and none of them have worked.  For example;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist1 = User="NT\sAUTHORITY\\SYSTEM|SYSTEM"

OR

blacklist1 = Sid="S\-1\-5\-18"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the documentation link; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/MonitorWindowsdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/MonitorWindowsdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;We are attempting to index USER process creation and closures.  These accounts do not represent users, so we do not want to index them.  These service account events are 90% of the indexed data.  So filtering these out will significantly reduce traffic and license usage.&lt;/P&gt;

&lt;P&gt;Is there a way to simply filter the raw input?  Is there a way to configure the forwarder to ignore EventLog records that contain a RegEx match at all?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 22:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168048#M34022</guid>
      <dc:creator>mcrawford44</dc:creator>
      <dc:date>2015-03-03T22:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How would I filter WinEventLog inputs on custom text?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168049#M34023</link>
      <description>&lt;P&gt;Have you tried this with just "blacklist" instead of "blacklist1"? I am not 100% sure, but I believe your first blacklist/whitelist entry in the list cannot have a sequence number.&lt;BR /&gt;
So, this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = User=&amp;lt;yourRegEx1&amp;gt;
blacklist1 = User=&amp;lt;yourRegEx2&amp;gt;
blacklist2 = User=&amp;lt;yourRegEx3&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;while this likely will not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist1 = User=&amp;lt;yourRegEx1&amp;gt;
blacklist2 = User=&amp;lt;yourRegEx2&amp;gt;
blacklist3 = User=&amp;lt;yourRegEx3&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I further believe that sequence numbers cannot have gaps in them, but you don't have that anyways.&lt;/P&gt;

&lt;P&gt;Edit: Now I see your whitelist1 = appears to work, so there goes this theory. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 00:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168049#M34023</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-03-04T00:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: How would I filter WinEventLog inputs on custom text?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168050#M34024</link>
      <description>&lt;P&gt;I still tested your theory, however it did not make a difference.  Thank you for your assistance though!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168050#M34024</guid>
      <dc:creator>mcrawford44</dc:creator>
      <dc:date>2015-03-04T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How would I filter WinEventLog inputs on custom text?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168051#M34025</link>
      <description>&lt;P&gt;The nullQueue may be a way to handle this situation.  I'm by no means an expert, but I used it to remove users that end in dollar signs.  I'm sure it would be easy to adapt this to your needs.  &lt;/P&gt;

&lt;P&gt;In my props.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WinEventLog:Security]
TRANSFORMS-remove-unwanted-users = unwanted-users-to-nullQ
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[unwanted-users-to-nullQ]
REGEX = Account\s{1}Name:.*\$
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, keep in mind that the way I'm doing it ALL items from source::WinEventLog:Security will be filtered like this.  That may or may not be what you want, but it is what I've got set up.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 18:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168051#M34025</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-03-04T18:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: How would I filter WinEventLog inputs on custom text?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168052#M34026</link>
      <description>&lt;P&gt;Hi, I know this was long ago, but it's the above transform regex for users ending in $&lt;/P&gt;

&lt;P&gt;? &lt;/P&gt;

&lt;P&gt;I have the same problem as the original poster. There is no clear answers anywhere to what I believe would be a very  common problem. &lt;BR /&gt;
I too have tried regex in inputs.conf with no luck. I want to try the props and transforms on the indexers but I want to be sure I'm doing the right thing. &lt;/P&gt;

&lt;P&gt;I don't want to index specifically event codes 4624 and 4634 for users that end in $&lt;BR /&gt;
Eg. P62134$&lt;/P&gt;

&lt;P&gt;Thankyou if you or anyone is out there to clarify&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-would-I-filter-WinEventLog-inputs-on-custom-text/m-p/168052#M34026</guid>
      <dc:creator>gerald_contrera</dc:creator>
      <dc:date>2018-03-08T12:56:58Z</dc:date>
    </item>
  </channel>
</rss>

