I am trying to remove window EventCodes 4688 and 4627. Nothing I have tried has worked. Her are the things that I have tried. This is on the inputs.conf.
blacklist = EventCode="4688" Message="(?:New Process Name:).+(?:SplunkUniversalForwarder\bin\splunk.exe)|.+(?:SplunkUniversalForwarder\bin\splunkd.exe)|.+(?:SplunkUniversalForwarder\bin\btool.exe)|.+(?:Splunk\bin\splunk.exe)|.+(?:Splunk\bin\splunkd.exe)|.+(?:Splunk\bin\btool.exe)|.+(?:Agent\MonitoringHost.exe)"
blacklist1= EventCode="4688"
blacklist2= EventCode="4627"
blacklist= EventCode=4627,4688
blacklist = EventCode=4627|4688
blacklist= EventCode=%^(4627|4688)$%
blacklist= EventCode=%^4627$%
blacklist= EventCode=%^4688$%
I've tried both of those. I forgot to put EventCode= in a couple examples
You mix two different things. One is blacklisting by eventID
blacklist=4627,4688
or
blacklist3=4627,4688
(of course it can be blacklist1 all the way to blacklist9).
That should work for any event format.
The other format is filtering based on event's contents (which might also include the EventID field).
And the equivalent would be
blacklist=EventCode=%^(4627|3688)$%
You can of course specify a different delimiter for your regex so it might be for example
blacklist=EventCode=+^(4627|3688)$+
Event Code Watchlist:
Blacklist = Unwanted Events:
Filtering Out Unwanted Stuff:
Improving Focus:
Less Noise, More Clarity:
I know the purpose of blacklist