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.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...