Getting Data In

Try to route certain WMI events to nullQueue

the_wolverine
Champion

and its not working. Why?

I can tell by viewing the event in Splunk that my WMI events have the following metadata:

host=WMIHost source=WMI:WinEventLog:Security sourcetype=WMI:WinEventLog:Security

My configuration is as follows:

props.conf:

[WMI:WinEventLog:Security]
TRANSFORMS-wminull = nullit

transforms.conf:

[nullit]
REGEX=(?m)^EventCode=(592|593)
DEST_KEY=queue
FORMAT=nullQueue

I'm trying to route certain WMI events (that match EventCode=592 or EventCode=593) to nullQueue and my configuration is not working.

1 Solution

the_wolverine
Champion

Because of the way WMI events are processed, when filtering on these you must use the [wmi] sourcetype stanza in props.conf:

[wmi]
TRANSFORMS-wminull = nullit

View solution in original post

MattG
New Member

How does this work if your are trying to filter Windows Events, but not using WMI, but rather a Universal Forwarder?

Thanks,
-Matt

0 Karma

frankysplunk
Explorer

I which file or subfolder I have to create or edit the probs.conf and transformers.conf? In the subdirectory of the Windows App / local ?

Thanks in advice!

0 Karma

simonmag
New Member

I have it set the other way, I am only indexing certain events and sending everything else to the nul queue:

props.conf

[wmi]
TRANSFORMS-wmifilter = wmi-null, wmi-filter

[source::wineventlog:security]
TRANSFORMS-evtlog = log-null, log-filter

transforms.conf

[wmi-null]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[wmi-filter]
REGEX=EventCode=(560|529)
DEST_KEY = queue
FORMAT = indexQueue

Try swirching them round, should work

0 Karma

Lowell
Super Champion

I would recommend the following minor REGEX change. Try using EventCode=(560|529)\D this makes sure that there are no trailing digits behind your match. For example, you don't want to match "EventCode=5291"

0 Karma

the_wolverine
Champion

Because of the way WMI events are processed, when filtering on these you must use the [wmi] sourcetype stanza in props.conf:

[wmi]
TRANSFORMS-wminull = nullit
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!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...