<?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: Filter windows events on indexer from a universal forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101447#M21262</link>
    <description>&lt;P&gt;This is still not working.  Here's my props.conf from /opt/splunk/etc/system/local:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::web002.xxx]
TRANSFORMS-no_lb = no_lb_traffic_transform
[WinEventLog:Security]
TRANSFORMS-FilterEvents = filtersecurityevents
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and here's the transforms.conf file from the same directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[no_lb_traffic_transform]
REGEX=(10\.100\.0\.3|10\.100\.0\.2)(.*) 
DEST_KEY=queue
FORMAT=nullQueue
[filtersecurityevents]
REGEX=EventCode=(4634|4624|4769)
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, I have an additional stanza in each from some filtering I'm doing on some other web logs. That filtering is working fine, it's just the windows events that aren't being filtered.  I have tested my regex in the search app and it is matching all the events that I want to filter out.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2011 18:44:50 GMT</pubDate>
    <dc:creator>jstockamp</dc:creator>
    <dc:date>2011-05-13T18:44:50Z</dc:date>
    <item>
      <title>Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101444#M21259</link>
      <description>&lt;P&gt;I've been beating my head against a wall with this for a few hours.  My setup is I have a linux indexer with a few windows universal forwarders sending data to it.  I'm trying to filter out some event codes from the index.  I'm assuming that since these are universal forwarders, I'll need to forward all events and filter out the ones I don't want at index time, correct?&lt;/P&gt;

&lt;P&gt;Based on that assumption on the indexer I've got the following in $SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;P&gt;[WinEventLog:Security]&lt;BR /&gt;&lt;BR /&gt;
TRANSFORMS-Filter_Events = FilterSecurityEvents&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;and in $SPLUNK_HOME/etc/system/local/transforms.conf&lt;/P&gt;

&lt;P&gt;[FilterSecurityEvents]&lt;BR /&gt;&lt;BR /&gt;
REGEX=(?msi)^EventCode=(4634|4624|4769)&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;&lt;BR /&gt;
FORMAT=nullQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I'm still getting events with these 3 codes in the index.  Any idea(s) why this isn't working?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2011 23:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101444#M21259</guid>
      <dc:creator>jstockamp</dc:creator>
      <dc:date>2011-05-12T23:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101445#M21260</link>
      <description>&lt;P&gt;If you remove your ^ anchor, it should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=EventCode=(4634|4624|4769)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT:  Don't forget to restart Splunk after making/changing an index-time transform.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 17:42:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101445#M21260</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-05-13T17:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101446#M21261</link>
      <description>&lt;P&gt;You can test your RegEx in Search, before you hit the drawing board with props/transforms.  Use:  ... | regex "EventCode=(4634|4624|4769)" to make sure your events show.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 17:44:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101446#M21261</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-05-13T17:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101447#M21262</link>
      <description>&lt;P&gt;This is still not working.  Here's my props.conf from /opt/splunk/etc/system/local:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::web002.xxx]
TRANSFORMS-no_lb = no_lb_traffic_transform
[WinEventLog:Security]
TRANSFORMS-FilterEvents = filtersecurityevents
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and here's the transforms.conf file from the same directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[no_lb_traffic_transform]
REGEX=(10\.100\.0\.3|10\.100\.0\.2)(.*) 
DEST_KEY=queue
FORMAT=nullQueue
[filtersecurityevents]
REGEX=EventCode=(4634|4624|4769)
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, I have an additional stanza in each from some filtering I'm doing on some other web logs. That filtering is working fine, it's just the windows events that aren't being filtered.  I have tested my regex in the search app and it is matching all the events that I want to filter out.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 18:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101447#M21262</guid>
      <dc:creator>jstockamp</dc:creator>
      <dc:date>2011-05-13T18:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101448#M21263</link>
      <description>&lt;P&gt;I tried your stanzas in my lab, and the events are being filtered properly.  I tested with your original RegEx (which is more efficient than using no anchor, but doesn't account for possible odd multi-line behavior).  You might contact support to see if there is an issue when using a forwarder.  One other option might be to try specifying the transform using &lt;CODE&gt;host&lt;/CODE&gt; or &lt;CODE&gt;source&lt;/CODE&gt;, to see if it's limited to &lt;CODE&gt;sourcetype&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;One other consideration:  My lab is eating the security eventlog as a file, rather than using WMI.  The structure is exactly the same; however, the issue may have something to do with the input.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 19:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101448#M21263</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-05-13T19:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101449#M21264</link>
      <description>&lt;P&gt;Thanks.  I've opened a case with support.  I've tried specifying a specific host and source in props.conf instead of using a sourcetype and it still didn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 20:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101449#M21264</guid>
      <dc:creator>jstockamp</dc:creator>
      <dc:date>2011-05-13T20:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101450#M21265</link>
      <description>&lt;P&gt;I believe I've solved this.  The issue is that the forwarder was running version 4.2.1 of the universal forwarder and my indexer was still running splunk version 4.2.  I upgraded the indexer to 4.2 and it now seems to be working and filtering correctly.&lt;/P&gt;

&lt;P&gt;Kind of odd that there were no errors in splunkd.log and that the forwarder clearly had no problems talking to the indexer since events were still making it into the index (just not being filtered).&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 20:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101450#M21265</guid>
      <dc:creator>jstockamp</dc:creator>
      <dc:date>2011-05-13T20:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter windows events on indexer from a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101451#M21266</link>
      <description>&lt;P&gt;Any update to this? I'm having a similar issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 17:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-windows-events-on-indexer-from-a-universal-forwarder/m-p/101451#M21266</guid>
      <dc:creator>gwege</dc:creator>
      <dc:date>2013-10-30T17:47:27Z</dc:date>
    </item>
  </channel>
</rss>

