<?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 Event filtering not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Event-filtering-not-working/m-p/71557#M14565</link>
    <description>&lt;P&gt;I'm trying to follow the instructions from the "Route and filter data" section of the documentation.  The server in question is Windows 2003 and it is using WMI to pull events from two Windows 2008 servers.  The goal is to only capture account lockout events (event id:  644 on 2003 and event id:  4047 on 2008).&lt;/P&gt;

&lt;P&gt;I followed the instructions, but it's causing all events to get dropped.  If I remove the props.conf and transforms.conf, it pulls events just fine.  Here are the config files:&lt;/P&gt;

&lt;P&gt;INPUTS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Application]
disabled = 1

[WinEventLog:Security]
disabled = 0

[WinEventLog:System]
disabled = 1

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TRANSFORMS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[2008lockouts]
REGEX = (?m)^EventCode=(4740)\b
DEST_KEY = queue
FORMAT = indexQueue

[2003lockouts]
REGEX = (?m)^EventCode=(644)\b
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PROPS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wmi]
TRANSFORMS-null = 2008lockouts,setnull  (note, I also tried it with TRANSFORMS-wmi)

[WinEventLog:Security]
TRANSFORMS-null = 2003lockouts,setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;WMI.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings]
max_backoff = 300
heartbeat_interval = 500
max_retries_at_max_backoff = 50
result_queue_size = 1000
initial_backoff = 30
checkpoint_sync_interval = 2

[WMI:2008DCEventLogs]
disabled = 0
event_log_file = security
interval = 10
server = server1, server2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I doing wrong here?&lt;/P&gt;

&lt;P&gt;Thx.&lt;/P&gt;

&lt;P&gt;Craig&lt;/P&gt;</description>
    <pubDate>Sat, 16 Oct 2010 03:55:34 GMT</pubDate>
    <dc:creator>jambajuice</dc:creator>
    <dc:date>2010-10-16T03:55:34Z</dc:date>
    <item>
      <title>Event filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-filtering-not-working/m-p/71557#M14565</link>
      <description>&lt;P&gt;I'm trying to follow the instructions from the "Route and filter data" section of the documentation.  The server in question is Windows 2003 and it is using WMI to pull events from two Windows 2008 servers.  The goal is to only capture account lockout events (event id:  644 on 2003 and event id:  4047 on 2008).&lt;/P&gt;

&lt;P&gt;I followed the instructions, but it's causing all events to get dropped.  If I remove the props.conf and transforms.conf, it pulls events just fine.  Here are the config files:&lt;/P&gt;

&lt;P&gt;INPUTS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Application]
disabled = 1

[WinEventLog:Security]
disabled = 0

[WinEventLog:System]
disabled = 1

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TRANSFORMS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[2008lockouts]
REGEX = (?m)^EventCode=(4740)\b
DEST_KEY = queue
FORMAT = indexQueue

[2003lockouts]
REGEX = (?m)^EventCode=(644)\b
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PROPS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wmi]
TRANSFORMS-null = 2008lockouts,setnull  (note, I also tried it with TRANSFORMS-wmi)

[WinEventLog:Security]
TRANSFORMS-null = 2003lockouts,setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;WMI.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings]
max_backoff = 300
heartbeat_interval = 500
max_retries_at_max_backoff = 50
result_queue_size = 1000
initial_backoff = 30
checkpoint_sync_interval = 2

[WMI:2008DCEventLogs]
disabled = 0
event_log_file = security
interval = 10
server = server1, server2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I doing wrong here?&lt;/P&gt;

&lt;P&gt;Thx.&lt;/P&gt;

&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2010 03:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-filtering-not-working/m-p/71557#M14565</guid>
      <dc:creator>jambajuice</dc:creator>
      <dc:date>2010-10-16T03:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Event filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-filtering-not-working/m-p/71558#M14566</link>
      <description>&lt;P&gt;What happens if you reverse the order in the transform line?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wmi]
TRANSFORMS-null = setnull, 2008lockouts

[WinEventLog:Security]
TRANSFORMS-null = setnull, 2003lockouts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The order in transforms.conf shouldn't matter, but the order in the actual &lt;CODE&gt;TRANSFORM=&lt;/CODE&gt; line of props.conf may be significant. I think in your original version, &lt;CODE&gt;setnull&lt;/CODE&gt; will match after &lt;CODE&gt;200Xlockouts&lt;/CODE&gt;, so it will first set the queue to &lt;CODE&gt;indexQueue&lt;/CODE&gt;, but then change it back to &lt;CODE&gt;nullQueue&lt;/CODE&gt; when your single-dot regex matches.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2010 04:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-filtering-not-working/m-p/71558#M14566</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-10-16T04:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Event filtering not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-filtering-not-working/m-p/71559#M14567</link>
      <description>&lt;P&gt;Yes, the order does matter.  Each individual transformer listed will be executed in the order given.  (If you have multiple &lt;CODE&gt;transforms-&amp;lt;class&amp;gt;&lt;/CODE&gt; entries, then they will be in evaluated in ASCII sort order, FYI)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2010 11:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-filtering-not-working/m-p/71559#M14567</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-10-16T11:19:42Z</dc:date>
    </item>
  </channel>
</rss>

