<?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: Why is the Index Filter is not working? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310315#M58313</link>
    <description>&lt;P&gt;If you're using Splunk 6 or above at your forwarder level, you can/should do filter of Windows Event logs at forwarder level using blacklist attribute in the monitoring stanza. See this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/MonitorWindowseventlogdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/MonitorWindowseventlogdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 19:04:23 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-02-23T19:04:23Z</dc:date>
    <item>
      <title>Why is the Index Filter is not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310314#M58312</link>
      <description>&lt;P&gt;I have a filter built from: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Forwarding/Routeandfilterdatad&lt;/A&gt; and &lt;A href="https://www.splunk.com/blog/2012/09/21/the-splunk-app-for-active-directory-and-how-i-tamed-the-security-log.html"&gt;https://www.splunk.com/blog/2012/09/21/the-splunk-app-for-active-directory-and-how-i-tamed-the-security-log.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[dumpFirewallEvents]&lt;BR /&gt;
REGEX=(?m)EventCode=(5156|5157)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[source::wineventlog:security] TRANSFORMS-firewall = dumpFirewallEvents&lt;/P&gt;

&lt;P&gt;I'm stilling seeing the events 5156 in splunk and it's flooding the index quota&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:32:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310314#M58312</guid>
      <dc:creator>ntripp_element</dc:creator>
      <dc:date>2018-02-23T17:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Index Filter is not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310315#M58313</link>
      <description>&lt;P&gt;If you're using Splunk 6 or above at your forwarder level, you can/should do filter of Windows Event logs at forwarder level using blacklist attribute in the monitoring stanza. See this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/MonitorWindowseventlogdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/MonitorWindowseventlogdata#Create_advanced_filters_with_.27whitelist.27_and_.27blacklist.27&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 19:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310315#M58313</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-23T19:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Index Filter is not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310316#M58314</link>
      <description>&lt;P&gt;I tried that too as below: &lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
host = &lt;/P&gt;

&lt;P&gt;[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
start_from = oldest&lt;BR /&gt;
blacklist = 5156-5157&lt;/P&gt;

&lt;P&gt;Also not working&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 21:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310316#M58314</guid>
      <dc:creator>ntripp_element</dc:creator>
      <dc:date>2018-02-23T21:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Index Filter is not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310317#M58315</link>
      <description>&lt;P&gt;So you're adding above inputs.conf entry in the Windows server where you're collecting Windows Event logs from? Did you restart Splunk service after making the change?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 21:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310317#M58315</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-23T21:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Index Filter is not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310318#M58316</link>
      <description>&lt;P&gt;I'm using the universal forwarder to the splunk indexer. I placed those settings into inputs.conf on the indexer and restarted the service. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 21:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310318#M58316</guid>
      <dc:creator>ntripp_element</dc:creator>
      <dc:date>2018-02-23T21:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Index Filter is not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310319#M58317</link>
      <description>&lt;P&gt;Hi ntripp_element,&lt;BR /&gt;
at a first sight, I see an error in your regex: = is a special char that you must escape with backslash "\"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=(?m)EventCode\=5156|5157
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Anyway I usually prefer to use two transforms:&lt;BR /&gt;
in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
TRANSFORMS-set= setparsing,setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = (?m)EventCode\=(5156|5157)
DEST_KEY = queue
FORMAT = nullQueue
[setparsing]
REGEX = .
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 18:09:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Index-Filter-is-not-working/m-p/310319#M58317</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-24T18:09:12Z</dc:date>
    </item>
  </channel>
</rss>

