<?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 Remote Event Log (Windows) Filtering by EventCode not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67683#M13664</link>
    <description>&lt;P&gt;I know this question has been asked many times over, but I can't see how my .conf files are different than the working examples.  I seem to be getting all EventCodes in my index.&lt;/P&gt;

&lt;P&gt;Could someone please do a double-check here?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# apps/search/local/wmi.conf
#
[default]

[WMI:DC Event Logs]
disabled = 0
event_log_file =  Security
interval = 5
server = a-dc-01



# system/local/props.conf  (also tried putting this under search)
#
[source::WMI:WinEventLog:Security]
TRANSFORMS-WMISecurityLog = setWMISecurityLogRetain,setWMISecurityLogNull


# system/local/transforms.conf (also tried putting this under search)
#
[setWMISecurityLogNull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setWMISecurityLogRetain]
REGEX = (?m)^EventCode=(4662|5136|5137|5138|5139|5141)\D
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to limit the log entries to the IDs above but I'm getting many more EventCodes than I want.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EventCode count(EventCode)
--------- ----------------
 4662               44
 4735               38
 4768               84
 4769             2413
 4770               79
 4771               13
 4776              162
 5159             1870
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance,
Hugh&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2011 10:33:04 GMT</pubDate>
    <dc:creator>hughkelley</dc:creator>
    <dc:date>2011-03-25T10:33:04Z</dc:date>
    <item>
      <title>Remote Event Log (Windows) Filtering by EventCode not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67683#M13664</link>
      <description>&lt;P&gt;I know this question has been asked many times over, but I can't see how my .conf files are different than the working examples.  I seem to be getting all EventCodes in my index.&lt;/P&gt;

&lt;P&gt;Could someone please do a double-check here?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# apps/search/local/wmi.conf
#
[default]

[WMI:DC Event Logs]
disabled = 0
event_log_file =  Security
interval = 5
server = a-dc-01



# system/local/props.conf  (also tried putting this under search)
#
[source::WMI:WinEventLog:Security]
TRANSFORMS-WMISecurityLog = setWMISecurityLogRetain,setWMISecurityLogNull


# system/local/transforms.conf (also tried putting this under search)
#
[setWMISecurityLogNull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setWMISecurityLogRetain]
REGEX = (?m)^EventCode=(4662|5136|5137|5138|5139|5141)\D
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to limit the log entries to the IDs above but I'm getting many more EventCodes than I want.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EventCode count(EventCode)
--------- ----------------
 4662               44
 4735               38
 4768               84
 4769             2413
 4770               79
 4771               13
 4776              162
 5159             1870
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance,
Hugh&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2011 10:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67683#M13664</guid>
      <dc:creator>hughkelley</dc:creator>
      <dc:date>2011-03-25T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remote Event Log (Windows) Filtering by EventCode not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67684#M13665</link>
      <description>&lt;P&gt;I'm still exploring this theory, but it seems like&lt;/P&gt;

&lt;H1&gt;this doesn't match the events&lt;/H1&gt;

&lt;P&gt;[source::WMI:WinEventLog:Security]&lt;/P&gt;

&lt;H1&gt;but this does (specifying sourcetype, as opposed to source).&lt;/H1&gt;

&lt;P&gt;[WMI:WinEventLog:Security]&lt;/P&gt;

&lt;P&gt;Does that sound right?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2011 04:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67684#M13665</guid>
      <dc:creator>hughkelley</dc:creator>
      <dc:date>2011-03-30T04:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remote Event Log (Windows) Filtering by EventCode not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67685#M13666</link>
      <description>&lt;P&gt;If you want to keep only the events listed in setWMISecurityLogRetain and drop the rest, please invert the order of your transforms.&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
TRANSFORMS-WMISecurityLog = setWMISecurityLogNull,setWMISecurityLogRetain&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
BEWARE : On recent versions of the windows app, the sourcetype for windowsevents has changed, so should change the props.conf &lt;BR /&gt;
[wmi] in splunk 4.1&lt;BR /&gt;
[WMI:WinEventLog:Security] in 4.2&lt;/P&gt;

&lt;P&gt;please try then both, or use them both if you have a mix of forwarder's versions to cover them all.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2011 19:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67685#M13666</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2011-06-29T19:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remote Event Log (Windows) Filtering by EventCode not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67686#M13667</link>
      <description>&lt;P&gt;UPDATE splunk 6.*&lt;BR /&gt;
Since this version you can actually specify a list or range of eventCodes to exclude at the forwarder level, in inputs.conf. It will reduce the volume at the forwarder level and reduce the network load.&lt;/P&gt;

&lt;P&gt;see &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;example:&lt;/P&gt;

&lt;P&gt;[WinEventLog:Security]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
blacklist=566,800-850&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 23:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67686#M13667</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-10-25T23:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remote Event Log (Windows) Filtering by EventCode not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67687#M13668</link>
      <description>&lt;P&gt;see example :&lt;BR /&gt;
Additional method to filter since Splunk 6.*&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/116817/filter-wineventlog-events-based-on-the-eventcodes"&gt;http://answers.splunk.com/answers/116817/filter-wineventlog-events-based-on-the-eventcodes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 21:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remote-Event-Log-Windows-Filtering-by-EventCode-not-working/m-p/67687#M13668</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-12-31T21:40:46Z</dc:date>
    </item>
  </channel>
</rss>

