<?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 can't I blacklist Windows Security EventCode 5152 in inputs.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415181#M73407</link>
    <description>&lt;P&gt;You propably want to gain some knowledge about apps first before continuing.&lt;/P&gt;

&lt;P&gt;Please tell me how your enviroment looks like, do you have a standalone Splunk instance or several with different roles? ( Search Head, Indexer etc.)&lt;/P&gt;

&lt;P&gt;In general you will create an app in $SPLUNK_HOME/etc/apps/. Create an new folder in apps with the name of your app. Lets call it "my_first_app".&lt;/P&gt;

&lt;P&gt;So we have $SPLUNK_HOME/etc/apps/my_first_app. Next you need to create an "local" directory in my_first_app. So $SPLUNK_HOME/etc/apps/my_first_app/local. Within local you place your transforms and props.conf.&lt;/P&gt;

&lt;P&gt;Please post how your conf files look like now. maybe theres an error in there as well.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:21:59 GMT</pubDate>
    <dc:creator>dkeck</dc:creator>
    <dc:date>2020-09-29T22:21:59Z</dc:date>
    <item>
      <title>Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415171#M73397</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to blacklist EventCode 5152 in inputs.conf.  I have tried putting it in a different order in the list below (blacklist, blacklist3, blacklist5), and that didn't work.  I have tried with the current message setting as well as typing out the message and that did not help.  The other events listed are currently being blocked correctly.  My current version of Splunk is 7.0.0.  Any help would be appreciated.&lt;/P&gt;

&lt;P&gt;From the inputs.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
disabled = 0
start_from = oldest
current_only = 0
evt_resolve_ad_obj = 1
checkpointInterval = 5
index = wineventlog
blacklist = EventCode="5152" Message="*"
blacklist1 = EventCode="4662" Message="Object Type:(?!\s*groupPolicyContainer)"
blacklist2 = EventCode="566" Message="Object Type:(?!\s*groupPolicyContainer)"
blacklist3 = EventCode="4932" Message="*"
blacklist4 = EventCode="4933" Message="*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From Splunk search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11/29/2018 01:44:20 PM
LogName=Security
SourceName=Microsoft Windows security auditing.
EventCode=5152
EventType=0
Type=Information
ComputerName=XXX.northgrum.com
TaskCategory=Filtering Platform Packet Drop
OpCode=Info
RecordNumber=36423970
Keywords=Audit Failure
Message=The Windows Filtering Platform has blocked a packet.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Application Information:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Process ID:     0
    Application Name:   -
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Network Information:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Direction:      Inbound
    Source Address:     XXX
    Source Port:        8080
    Destination Address:    XXX
    Destination Port:       64430
    Protocol:       6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filter Information:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Filter Run-Time ID: 70679
    Layer Name:     Transport
    Layer Run-Time ID:  13
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EventCode = 5152        &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host =  XXX 
    source =    WinEventLog:Security        
    sourcetype =    WinEventLog:Security
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 20:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415171#M73397</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-11-29T20:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415172#M73398</link>
      <description>&lt;P&gt;How about a tweak in the order of blacklist...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; blacklist1 = EventCode="5152" Message="*"
 blacklist2 = EventCode="4662" Message="Object Type:(?!\s*groupPolicyContainer)"
 blacklist3 = EventCode="566" Message="Object Type:(?!\s*groupPolicyContainer)"
 blacklist4 = EventCode="4932" Message="*"
 blacklist5 = EventCode="4933" Message="*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 03:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415172#M73398</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2018-11-30T03:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415173#M73399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I know you ask for blacklist and I see why, but if this is not working for you, did you try sending to nullqueque on the Indexer?&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]

{{TRANSFORMS-&amp;lt;name&amp;gt;=&amp;lt;name_in_transforms&amp;gt;

}}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;name_in_transforms&amp;gt;]

{{REGEX="EventCode=(4662|4634|4672)"
}}

DEST_KEY=queue

FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to filter for more than the EventCode number, you can just add to the Regex, but you will need a &lt;CODE&gt;(?s)&lt;/CODE&gt; infront, because of the new line characters in wineventlog events ( &lt;CODE&gt;REGEX="(?s)EventCode=(4662|4634|4672).*Message=[....]&lt;/CODE&gt; )&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415173#M73399</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-11-30T06:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415174#M73400</link>
      <description>&lt;P&gt;Which props.conf file do I modify?  There are several on the host machine.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 20:11:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415174#M73400</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-11-30T20:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415175#M73401</link>
      <description>&lt;P&gt;Did you deploy this to all of your forwarders and restart the Splunk instances there?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 23:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415175#M73401</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-11-30T23:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415176#M73402</link>
      <description>&lt;P&gt;You can set up a knew app for this to include your /local/props.conf and /local/transforms. Then deploy it to your Indexer &lt;/P&gt;

&lt;P&gt;Or there is already an app working with WinEventLog:Security, so you could add it there.&lt;/P&gt;

&lt;P&gt;Please note that you have to eddit two conf files transforms.conf and props.conf&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 12:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415176#M73402</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-12-04T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415177#M73403</link>
      <description>&lt;P&gt;Moving it to the top was unsuccessful.  I tried restarting the service and still did not work.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 21:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415177#M73403</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-12-04T21:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415178#M73404</link>
      <description>&lt;P&gt;What is the location of the props.conf and transform.conf files I am to modify?  c:\program file\splunk...&lt;BR /&gt;
My host server is generating 100k of these events every day so I would like to start on this server.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 21:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415178#M73404</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-12-04T21:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415179#M73405</link>
      <description>&lt;P&gt;you have to create these files yourself on the indexer ( or on the master and apply a new bundle if you have a cluster)&lt;/P&gt;

&lt;P&gt;set up a new app, with a local directory.&lt;/P&gt;

&lt;P&gt;Create props.conf and transforms.conf.&lt;/P&gt;

&lt;P&gt;Add and eddit the content I postet above and save the files.&lt;/P&gt;

&lt;P&gt;Restart splunkd&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 08:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415179#M73405</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-12-06T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415180#M73406</link>
      <description>&lt;P&gt;I created these two files like you requested.  I added a |5152 in the transforms.conf file.  I placed them in the Splunk\etc folder.&lt;/P&gt;

&lt;P&gt;What you mean by setting up a new app with a local directory?&lt;/P&gt;

&lt;P&gt;I restarted splunkd and it still was not working.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 21:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415180#M73406</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-12-06T21:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415181#M73407</link>
      <description>&lt;P&gt;You propably want to gain some knowledge about apps first before continuing.&lt;/P&gt;

&lt;P&gt;Please tell me how your enviroment looks like, do you have a standalone Splunk instance or several with different roles? ( Search Head, Indexer etc.)&lt;/P&gt;

&lt;P&gt;In general you will create an app in $SPLUNK_HOME/etc/apps/. Create an new folder in apps with the name of your app. Lets call it "my_first_app".&lt;/P&gt;

&lt;P&gt;So we have $SPLUNK_HOME/etc/apps/my_first_app. Next you need to create an "local" directory in my_first_app. So $SPLUNK_HOME/etc/apps/my_first_app/local. Within local you place your transforms and props.conf.&lt;/P&gt;

&lt;P&gt;Please post how your conf files look like now. maybe theres an error in there as well.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:21:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415181#M73407</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2020-09-29T22:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415182#M73408</link>
      <description>&lt;P&gt;As per &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.1/Admin/Inputsconf"&gt;inputs.conf&lt;/A&gt; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  blacklist1 = EventCode="5152"
  blacklist2 = EventCode="4662" Message="Object Type:(?!\s*groupPolicyContainer)"
  blacklist3 = EventCode="566" Message="Object Type:(?!\s*groupPolicyContainer)"
  blacklist4 = EventCode="4932"
  blacklist5 = EventCode="4933"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or simply just:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  blacklist1 = 5152,4932,4933
  blacklist2 = EventCode="4662" Message="Object Type:(?!\s*groupPolicyContainer)"
  blacklist3 = EventCode="566" Message="Object Type:(?!\s*groupPolicyContainer)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Dec 2018 07:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415182#M73408</guid>
      <dc:creator>petom</dc:creator>
      <dc:date>2018-12-07T07:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415183#M73409</link>
      <description>&lt;P&gt;You can try for one Event Code,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
 disabled = 0
 start_from = oldest
 current_only = 0
 evt_resolve_ad_obj = 1
 checkpointInterval = 5
 index = wineventlog
 blacklist1 = 5152
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have multiple evencodes, you  can put blacklist1 = 5152,4662 &lt;BR /&gt;
Let me know if this works.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 08:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415183#M73409</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2018-12-07T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415184#M73410</link>
      <description>&lt;P&gt;I tried as you suggested and it did not work.  I then tried with spaces between the commas and with quotes around each number and it did not work.  I restarted Splunkd service each time.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415184#M73410</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-12-10T18:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415185#M73411</link>
      <description>&lt;P&gt;Before I respond to you questions, I think I have uncovered something.&lt;/P&gt;

&lt;P&gt;The blacklisting 'seems' to be working, but not on the events occurring on the host server.  Initially, I was just looking at events, but then I realized the events were only coming from one server and that was the host.&lt;/P&gt;

&lt;P&gt;Is there something Splunk related I need to do from the host server to keep from this event getting into the index?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415185#M73411</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-12-10T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I blacklist Windows Security EventCode 5152 in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415186#M73412</link>
      <description>&lt;P&gt;Also, as a test, I removed the blacklisting event and I got this event from multiple servers.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-blacklist-Windows-Security-EventCode-5152-in-inputs/m-p/415186#M73412</guid>
      <dc:creator>bwaldren</dc:creator>
      <dc:date>2018-12-10T19:49:08Z</dc:date>
    </item>
  </channel>
</rss>

