<?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: How do you filter windows event log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174452#M35104</link>
    <description>&lt;P&gt;Set the below configs at indexer and give a try..&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::*:Security]
TRANSFORMS-set=setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setparsing]
REGEX = .
DEST_KEY = queue
FORMAT =  indexQueue

[setnull]
REGEX =(?m)^EventCode=(540|538)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Oct 2014 09:51:51 GMT</pubDate>
    <dc:creator>splunker12er</dc:creator>
    <dc:date>2014-10-24T09:51:51Z</dc:date>
    <item>
      <title>How do you filter windows event log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174450#M35102</link>
      <description>&lt;P&gt;Hi, when I do the filtering windows log, I use the main program 6.1.4 then changed forwarder license, so Windows AD (main program changed forwarder license ) &amp;gt;&amp;gt; forwarder(main program changed forwarder license ) &amp;gt;&amp;gt; splunk index is my architecture.&lt;BR /&gt;
I hope drop eventcode=540 and 538, I have a reference to other people's actions, but unsuccessful.&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[WinEventLog:Security]  * Or [WMI:WinEventLog:Security] Or [wmi:WinEventLog:Security] Or [source::WinEventLog:Security]&lt;BR /&gt;
TRANSFORMS-set = delete&lt;/P&gt;

&lt;P&gt;[delete]&lt;BR /&gt;
REGEX = (?msi)^EventCode=540  * Or REGEX=(?m)^EventCode=(540|538) Or REGEX=(?msi)^EventCode=(540|538) &lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 04:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174450#M35102</guid>
      <dc:creator>chengyu</dc:creator>
      <dc:date>2014-10-24T04:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter windows event log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174451#M35103</link>
      <description>&lt;P&gt;I find this difficult to understand. &lt;/P&gt;

&lt;P&gt;Do you mean that you have a forwarder sending to an indexer, or that you have a forwarder running with AD sending to another forwarder, that sends to an indexer?&lt;/P&gt;

&lt;P&gt;Can you please show a specific case of your props.conf?  Is the transforms.conf empty?&lt;/P&gt;

&lt;P&gt;On which system are you setting up these configurations?  Are the systems Universal Forwarders or forwarders configured as Splunk Light Forwarders? &lt;/P&gt;

&lt;P&gt;It might be easier to use the WinEventLog filtering that is built-in to the input, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
blacklist= 540,538
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Oct 2014 04:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174451#M35103</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-10-24T04:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter windows event log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174452#M35104</link>
      <description>&lt;P&gt;Set the below configs at indexer and give a try..&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::*:Security]
TRANSFORMS-set=setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setparsing]
REGEX = .
DEST_KEY = queue
FORMAT =  indexQueue

[setnull]
REGEX =(?m)^EventCode=(540|538)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174452#M35104</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-10-24T09:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter windows event log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174453#M35105</link>
      <description>&lt;P&gt;Not sure  why you'd use [source::*:Security]  If that works, then [source::WinEventLog:Security] would also work, and be a fair amount clearer, I think.  I'd use the sourcetype myself.&lt;/P&gt;

&lt;P&gt;This should indeed work, however, if there are no heavy forwarders along the way.&lt;/P&gt;

&lt;P&gt;Filtering at the input level is more efficient, but it doesn't work with old versions of forwarders, so there's the tradeoff.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 10:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-event-log/m-p/174453#M35105</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-10-24T10:13:48Z</dc:date>
    </item>
  </channel>
</rss>

