Splunk Search

data filter

blebit
Path Finder

hello ,

@ props.conf

[host::TheHost]

TRANSFORMS-ReadData_bktfileserver = filter_ReadData

[WinEventLog:Security]
TRANSFORMS-filter4663 = filter_4663_readdata

@ transforms.conf

Filter EventCode=4663 (Filter ReadData)

[filter_4663_readdata]
REGEX = EventCode=4663.*?ReadData (or ListDirectory)
DEST_KEY = queue
FORMAT = nullQueue

Can anybody help me ??? i am trying to filter eventcode 4663 but only those who have dhe extension "ReadData (or ListDirectory)"

0 Karma

hRun
Path Finder

I'm not quite sure I understood your question.

What do you mean by "filter"? Extracting the field or discarding it?

At the moment, you are creating the field "filter4663" in props.conf and tie it to your regex in transforms.conf, which gets discarded by FORMAT=nullQueue. So eventcode 4663 is replaced with nothing.

The regex doesn't seem to be valid, it should look like this:

REGEX = (?i)EventCode=4663.*ReadData\s\(or\sListDirectory\)

0 Karma

blebit
Path Finder

thanks for the answer,
the point is that i want to drop all eventcodes 4663 for Object access with message "ReadData", because i have too much logs. BUT 4663 is for DELETE either. thats why i want to filter based on message attached to eventcode.

0 Karma

lukejadamec
Super Champion

Try this:

REGEX= "(?msi)EventCode=4663.*readdata|EventCode=4663.*listdirectory"

lukejadamec
Super Champion

Good news. Feel free to accept the answer.

0 Karma

blebit
Path Finder

thanks. it works

0 Karma

lukejadamec
Super Champion

That was the one I used for testing. I fixed it.
I tested this in the search window, and it worked fine.

0 Karma

blebit
Path Finder

why 4625? i want 4663

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