Getting Data In

Why are all events being filter except for EventCode 0 when filtering Windows Events?

splunkcol
Builder

Hi

I'm filtering windows events from the Heavy Forwarder, everything works fine, all events are filtered except for EventCode = 0 any idea why?

 

splunkcol_1-1628884389005.png

 

splunkcol_2-1628884418013.png

 

 

0 Karma
1 Solution

splunkcol
Builder

 

EventCode 0 was not being filtered because it is an Application event and not a security event.

In this way I solved it

 

props.conf

[source::WinEventLog:Application]
TRANSFORMS-wmi = setnull2

 


transforms.conf

[setnull2]
REGEX= (?msi) ^EventCode=(0)
DEST_KEY=queue
FORMAT=nullQueue

View solution in original post

0 Karma

splunkcol
Builder

 

EventCode 0 was not being filtered because it is an Application event and not a security event.

In this way I solved it

 

props.conf

[source::WinEventLog:Application]
TRANSFORMS-wmi = setnull2

 


transforms.conf

[setnull2]
REGEX= (?msi) ^EventCode=(0)
DEST_KEY=queue
FORMAT=nullQueue

0 Karma

jdhunter
Path Finder

We were able to filter it out from the UF using the following in our inputs.conf:

[WinEventLog://Application]
disabled = 0
index = windows_index
blacklist1 = EventCode="0"

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...