<?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: WMI filtering only eventlog from some users in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84236#M17500</link>
    <description>&lt;P&gt;Okay, I've made all the changes but it still archiving any log!&lt;/P&gt;

&lt;P&gt;Switching the props.conf in wmi:WinEventLog:Security it stops working totally.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Mar 2012 17:27:27 GMT</pubDate>
    <dc:creator>pmelchiori</dc:creator>
    <dc:date>2012-03-06T17:27:27Z</dc:date>
    <item>
      <title>WMI filtering only eventlog from some users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84232#M17496</link>
      <description>&lt;P&gt;I'm looking for a way to filter all the log eventlog from certain user's  group (SYSTEM and Administrator), but all my test going bad &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;(splunk 4.1.6)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;prof.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wmi]
TRANSFORMS-wminull = wmi-null, wmi-parsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wmi-null]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue  

[wmi-parsing]
REGEX = (?m)^User=(SYSTEM|Administrator)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2012 16:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84232#M17496</guid>
      <dc:creator>pmelchiori</dc:creator>
      <dc:date>2012-03-05T16:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: WMI filtering only eventlog from some users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84233#M17497</link>
      <description>&lt;P&gt;did you try the followings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (.)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AND/OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?msi)^User=(SYSTEM|Administrator)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2012 20:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84233#M17497</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-03-05T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: WMI filtering only eventlog from some users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84234#M17498</link>
      <description>&lt;P&gt;Yes, it does't filter anything, I can see all the logs in Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2012 14:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84234#M17498</guid>
      <dc:creator>pmelchiori</dc:creator>
      <dc:date>2012-03-06T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: WMI filtering only eventlog from some users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84235#M17499</link>
      <description>&lt;P&gt;pmelchiori,&lt;/P&gt;

&lt;P&gt;It looks like you have the syntax mostly right, but you need to check a few things.&lt;/P&gt;

&lt;P&gt;Is the sourcetype that you want to drop just "wmi" or is it "wmi:WinEventLog:Security" etc?  Make sure this is explicit.&lt;/P&gt;

&lt;P&gt;Additionally, your transform will apply to a SOURCE_KEY = _raw unless otherwise stated.  Your _raw will probably be equal to the entire event. That would mean that the string "user=XXX" is NOT at the beginning of the event, and therefore you don't want the carat "^" in your regex.&lt;/P&gt;

&lt;P&gt;Finally, you have two transforms, that do two different things.  The top one has a REGEX = (.).&lt;BR /&gt;
In Regex, a dot "." means match any single character.  So, this will match anything and mark it all to the nullQueue.   I am not sure your intention here, but you may want to adjust this or maybe even omit the first transform in lieu of the second.&lt;/P&gt;

&lt;P&gt;Check the sourcetype, check your transforms, fix that in props.conf and then remove your carat and see how that goes.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Sean&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2012 15:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84235#M17499</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2012-03-06T15:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: WMI filtering only eventlog from some users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84236#M17500</link>
      <description>&lt;P&gt;Okay, I've made all the changes but it still archiving any log!&lt;/P&gt;

&lt;P&gt;Switching the props.conf in wmi:WinEventLog:Security it stops working totally.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2012 17:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84236#M17500</guid>
      <dc:creator>pmelchiori</dc:creator>
      <dc:date>2012-03-06T17:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: WMI filtering only eventlog from some users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84237#M17501</link>
      <description>&lt;P&gt;See my updated answer above.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2012 01:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WMI-filtering-only-eventlog-from-some-users/m-p/84237#M17501</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2012-03-07T01:38:58Z</dc:date>
    </item>
  </channel>
</rss>

