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)

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 ...