Getting Data In

Event filtering not working

jambajuice
Communicator

I'm trying to follow the instructions from the "Route and filter data" section of the documentation. The server in question is Windows 2003 and it is using WMI to pull events from two Windows 2008 servers. The goal is to only capture account lockout events (event id: 644 on 2003 and event id: 4047 on 2008).

I followed the instructions, but it's causing all events to get dropped. If I remove the props.conf and transforms.conf, it pulls events just fine. Here are the config files:

INPUTS.CONF:

[WinEventLog:Application]
disabled = 1

[WinEventLog:Security]
disabled = 0

[WinEventLog:System]
disabled = 1

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]
disabled = 0

TRANSFORMS.CONF:

[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[2008lockouts]
REGEX = (?m)^EventCode=(4740)\b
DEST_KEY = queue
FORMAT = indexQueue

[2003lockouts]
REGEX = (?m)^EventCode=(644)\b
DEST_KEY = queue
FORMAT = indexQueue

PROPS.CONF:

[wmi]
TRANSFORMS-null = 2008lockouts,setnull  (note, I also tried it with TRANSFORMS-wmi)

[WinEventLog:Security]
TRANSFORMS-null = 2003lockouts,setnull

WMI.CONF:

[settings]
max_backoff = 300
heartbeat_interval = 500
max_retries_at_max_backoff = 50
result_queue_size = 1000
initial_backoff = 30
checkpoint_sync_interval = 2

[WMI:2008DCEventLogs]
disabled = 0
event_log_file = security
interval = 10
server = server1, server2

What am I doing wrong here?

Thx.

Craig

Tags (1)
0 Karma

southeringtonp
Motivator

What happens if you reverse the order in the transform line?

[wmi]
TRANSFORMS-null = setnull, 2008lockouts

[WinEventLog:Security]
TRANSFORMS-null = setnull, 2003lockouts

The order in transforms.conf shouldn't matter, but the order in the actual TRANSFORM= line of props.conf may be significant. I think in your original version, setnull will match after 200Xlockouts, so it will first set the queue to indexQueue, but then change it back to nullQueue when your single-dot regex matches.

Lowell
Super Champion

Yes, the order does matter. Each individual transformer listed will be executed in the order given. (If you have multiple transforms-<class> entries, then they will be in evaluated in ASCII sort order, FYI)

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...