<?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: Filtering windows events not working after switching to WMI pull in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71043#M14446</link>
    <description>&lt;P&gt;Can you clarify your input configuration?
Are you pulling events from remote eventlogs or from local ones?&lt;/P&gt;

&lt;P&gt;If it's from local ones, you should use a stanza of&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[WinEventLog:Security]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Also, if you're forwarding, then it will not use the wmi stanza on the recieving end, only the sending, so you'll need the proper spec&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::WMI:WinEventLog:Security]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Also, I'd change the transform names to
&lt;CODE&gt;allwminull&lt;/CODE&gt;
and
&lt;CODE&gt;successwminull&lt;/CODE&gt;
or similar.
As you're not setting the default to null and then rescuing the events you care about, which is what the original sample names are for.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2010 18:07:44 GMT</pubDate>
    <dc:creator>dart</dc:creator>
    <dc:date>2010-10-18T18:07:44Z</dc:date>
    <item>
      <title>Filtering windows events not working after switching to WMI pull</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71042#M14445</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My previous configuration to filter windows event codes doesn't work when I used it on another machine that is pulling data via WMI.
My objective is to filter off event codes 538,540,672,673,861 and "Success Audit" type for code 578.&lt;/P&gt;

&lt;P&gt;My existing configuration is:&lt;BR /&gt;
props.conf  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wmi]  
TRANSFORMS-null = setnullevents, setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnullevents]  
REGEX = (?m)^EventCode=(538|540|672|673|861)\b  
DEST_KEY = queue  
FORMAT = nullQueue 

[setparsing]
REGEX = (?msi)^EventCode=578.*^(Type=Audit Success)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea what I've missed?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2010 08:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71042#M14445</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2010-10-15T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering windows events not working after switching to WMI pull</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71043#M14446</link>
      <description>&lt;P&gt;Can you clarify your input configuration?
Are you pulling events from remote eventlogs or from local ones?&lt;/P&gt;

&lt;P&gt;If it's from local ones, you should use a stanza of&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[WinEventLog:Security]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Also, if you're forwarding, then it will not use the wmi stanza on the recieving end, only the sending, so you'll need the proper spec&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::WMI:WinEventLog:Security]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Also, I'd change the transform names to
&lt;CODE&gt;allwminull&lt;/CODE&gt;
and
&lt;CODE&gt;successwminull&lt;/CODE&gt;
or similar.
As you're not setting the default to null and then rescuing the events you care about, which is what the original sample names are for.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2010 18:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71043#M14446</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2010-10-18T18:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering windows events not working after switching to WMI pull</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71044#M14447</link>
      <description>&lt;P&gt;There are 3 machines, hostA,hostB(both windows) &amp;amp; splunk indexer(linux).  &lt;/P&gt;

&lt;P&gt;I have splunk installed on hostB and have configured with the above scripts to pull event logs from hostA, and then forward them to Splunk indexer.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2010 10:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71044#M14447</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2010-10-19T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering windows events not working after switching to WMI pull</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71045#M14448</link>
      <description>&lt;P&gt;don't know why but after I meddle around with the naming..it seems to work after that..&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;
props.conf
[wmi]&lt;BR /&gt;
TRANSFORMS-wminull = wmi-null, wmi-parsing&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;
[wmi-null]&lt;BR /&gt;
REGEX = (?msi)^EventCode=(538|540|672|673|861)\b&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;
[wmi-parsing]&lt;BR /&gt;
REGEX = (?msi)^EventCode=578.*^(Type=Audit Success)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2010 10:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-windows-events-not-working-after-switching-to-WMI-pull/m-p/71045#M14448</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2010-10-20T10:59:32Z</dc:date>
    </item>
  </channel>
</rss>

