<?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: WinEventLog filtering on indexer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11624#M648</link>
    <description>&lt;P&gt;True, changed it but still not receiving anything.&lt;BR /&gt;
The funny fact is if i change the InputNull to remove the eventcodes 4634 and leave the other one unchanged it works (so he removes the events with eventcode 4634 and forwards the others) but i want to be able to keep the events that i want to see and remove all the others&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2010 21:19:19 GMT</pubDate>
    <dc:creator>CerielTjuh</dc:creator>
    <dc:date>2010-04-16T21:19:19Z</dc:date>
    <item>
      <title>WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11622#M646</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;

&lt;P&gt;I have currently deployed Splunk in our network using SplunkLightForwarders and one central indexing server. I am indexing Windows Event Logs and forwarding them to the central indexer.&lt;/P&gt;

&lt;P&gt;I am trying to create a filter to filter and send only the eventcode wich we want to see.
I know a LightForwarder doesn't have the ability to filter the data so the action needs to be done on the central indexer.&lt;/P&gt;

&lt;P&gt;I have created a props.conf and transforms.conf but it doesn't seem to work and i am confused why it doens't work.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;
[WinEventLog:Security]
TRANSFORMS-queue=InputAllowed,InputNull
&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;
[InputAllowed]
REGEX=^EventCode=(4634|4662)
DEST_KEY=queue
FORMAT=indexQueue

[InputNull]
REGEX=(.)
DEST_KEY=queue
FORMAT=nullQueue
&lt;/PRE&gt;

&lt;P&gt;If I replace the configuration so that the EventCodes 4634 and 4662 are droppen to the nullQueue it works, only the filtering so that everything else is dropped doens't work . . .&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2010 19:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11622#M646</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-04-16T19:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11623#M647</link>
      <description>&lt;P&gt;Please see this:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/questions/577/how-do-you-filter-windows-event-log" rel="nofollow"&gt;http://answers.splunk.com/questions/577/how-do-you-filter-windows-event-log&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This talks about filtering the native Windows Event Log.  Since the eventlog is a multiline type event log, you will have to add the (?m) before your query.  Also, if you're using LWF, you would want to have the props.conf and transforms.conf configured on the indexer.  I would do a negate regex, so that way everything is not indexed but eventCodes 4634 and 4662. By doing this, you can remove the InputNull reference on your props, and completely remove it from your transform. Change your transform to this:&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;
[WinEventLog:Security]
TRANSFORMS-InputNegate = InputNegate
&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;
[InputNegate]
REGEX = (?msi).*EventCode=([^4634]|[^4662]).*
DEST_KEY = queue
FORMAT = nullQueue
&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Apr 2010 19:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11623#M647</guid>
      <dc:creator>BunnyHop</dc:creator>
      <dc:date>2010-04-16T19:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11624#M648</link>
      <description>&lt;P&gt;True, changed it but still not receiving anything.&lt;BR /&gt;
The funny fact is if i change the InputNull to remove the eventcodes 4634 and leave the other one unchanged it works (so he removes the events with eventcode 4634 and forwards the others) but i want to be able to keep the events that i want to see and remove all the others&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2010 21:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11624#M648</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-04-16T21:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11625#M649</link>
      <description>&lt;P&gt;Then in that case, I've updated my original answer.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2010 01:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11625#M649</guid>
      <dc:creator>BunnyHop</dc:creator>
      <dc:date>2010-04-17T01:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11626#M650</link>
      <description>&lt;P&gt;I'm sorry but it still isn't working Bunny, EventCode 4769 is also in my results... Not sure if I gave you a good idea of what i want to do, i want to create a filter of the events i want to see, not remove the things i don't want to see. During the weekend i tried multiple things on my environment and also on a fresh installed environment without results. Is it even possible ?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2010 13:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11626#M650</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-04-19T13:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11627#M651</link>
      <description>&lt;P&gt;It should be possible.  What are you trying to accomplish?  If you want to keep the rest of the events on Splunk you're probably better off creating a saved search instead of filtering.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2010 19:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11627#M651</guid>
      <dc:creator>BunnyHop</dc:creator>
      <dc:date>2010-04-19T19:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11628#M652</link>
      <description>&lt;P&gt;The problem is that my license doesn't allow it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2010 20:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11628#M652</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-04-19T20:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11629#M653</link>
      <description>&lt;P&gt;Understood.  The problem really is either you're blacklisting or whitelisting.  You can either allow for certain events and then drop everything else or you can drop certain events and allow everything else.  Does this make sense?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2010 03:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11629#M653</guid>
      <dc:creator>BunnyHop</dc:creator>
      <dc:date>2010-04-20T03:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11630#M654</link>
      <description>&lt;P&gt;Yes, and im trying to create a whitelist, that is what i want in the end, but the problem is that it doesn't work, if I change the FORMAT = nullQueue to indexQueue the events aren't showing up. Or do I need to make a different whitelist?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 13:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11630#M654</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-04-21T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11631#M655</link>
      <description>&lt;P&gt;Any new thoughts on this issue?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-props.conf-
[source::WinEventLog:Security]
TRANSFORMS-set= setparsing, setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Part two.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-transforms.conf-
[setparsing]
REGEX = (?m)^EventCode=(592|593)
DEST_KEY = queue
FORMAT = tcpOutQueue

[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The funny side is that Splunk does not forward anything when i activate this script. Only the Application and System logs are forwarding.
I also tried to publish this application as a deployment app, but that doesn't work either...&lt;/P&gt;

&lt;P&gt;I could really use some help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2010 01:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11631#M655</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-06-17T01:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11632#M656</link>
      <description>&lt;P&gt;you should reverse the order. if you set the queue to tcpOutQueue (which I don't believe is correct anyway), the next rule sets it to null, so it will be discarded. It's also important to specify whether this is on an indexer or light forwarder or regular forwarder.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2010 02:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11632#M656</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-17T02:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11633#M657</link>
      <description>&lt;P&gt;I will change the order and try again, I tried it on a light forwarder (but that doesn't work by design) and now on a forwarder (basic install with a deployment app to forward the data)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11633#M657</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-06-18T13:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11634#M658</link>
      <description>&lt;P&gt;CerielTjuh, please update your question.  If you have found a solution, please indicate so by checking one of them.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2010 07:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11634#M658</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-08-28T07:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11635#M659</link>
      <description>&lt;P&gt;gkanapathy: according to documentation, nullQueue transforms are processed last, so the order shouldn't matter in this case. &lt;BR /&gt;
&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Routeandfilterdata"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Routeandfilterdata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2011 06:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11635#M659</guid>
      <dc:creator>gfriedmann</dc:creator>
      <dc:date>2011-01-18T06:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog filtering on indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11636#M660</link>
      <description>&lt;P&gt;your props.conf looks wrong.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WinEventLog:Security]
TRANSFORMS-nullQ=nullFilter-WFP5156
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transform.conf for my props.conf entry:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[nullFilter-WFP5156]
REGEX = EventCode=5156
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2012 17:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-filtering-on-indexer/m-p/11636#M660</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2012-11-05T17:04:42Z</dc:date>
    </item>
  </channel>
</rss>

