All Apps and Add-ons

Filtering Windows Application and Security events

MBerikcurtis
Path Finder

I've been filtering Windows Security events for a while now without any issue by using:

props.conf

[WMI:WinEventLog:Security]

TRANSFORMS-wmi=wmisecnull

transforms.conf

[wmisecnull]

REGEX=(?m)^EventCode=(8|33|674|916|4770|5145|5157|4688|4689)

DEST_KEY=queue

FORMAT=nullQueue

then I made these edits

props.conf

[WMI:WinEventLog:Security]

TRANSFORMS-wmi=wmisecnull

WMI:WinEventLog:Application]

TRANSFORMS-wmi=wmiappnull

transforms.conf

[wmisecnull]

REGEX=(?m)^EventCode=(8|33|674|916|4770|5145|5157|4688|4689)

DEST_KEY=queue

FORMAT=nullQueue

[wmiappnull]

REGEX=(?m)^EventCode=(916)

DEST_KEY=queue

FORMAT=nullQueue

after these edits, the events that used to be filter are nolonger filtered.

0 Karma
1 Solution

MarioM
Motivator

the opening "[" is missing at WMI:WinEventLog:Application,is it what you have in conf file or it's only typo in your post?

As well i would change its TRANSFORMS-wmi= for TRANSFORMS-wmiapp= just to be sure there is no conflict with first one.

View solution in original post

jsdao
Explorer

Can you have multiple regex under on stanza or do i have to make a one to one relationship between props and transforms even if the source type and action are the same.

0 Karma

MarioM
Motivator

the opening "[" is missing at WMI:WinEventLog:Application,is it what you have in conf file or it's only typo in your post?

As well i would change its TRANSFORMS-wmi= for TRANSFORMS-wmiapp= just to be sure there is no conflict with first one.

MBerikcurtis
Path Finder

once I put in the missing[ the world started spinning again!

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...