Getting Data In

discard not needed events

Clovens
New Member

Hi,
I am new to splunk, I only want to forward specific events to splunk (for example: failures)and discard the rest.In the props.conf file
I added these lines below
[WMI:WinEventLog:Security]
TRANSFORMS-wmi=wminull

and in the transforms.conf file, I added those lines
[wminull]
REGEX=(?m)^Keywords = Audit Success
DEST_KEY=queue
FORMAT=nullQueue

the indexer is still receiving the Audit Success logs, would you please let me know what I am doing wrong?

thanks,.

Tags (1)
0 Karma
1 Solution

Ayn
Legend

Two possible causes to this:
- You're trying to do this on a Universal Forwarder. These will not filter data - it has to be done on the indexer.
- Your regex isn't matching properly.

View solution in original post

0 Karma

mloven_splunk
Splunk Employee
Splunk Employee

Clovens,

Another possibility is that that beginning of line character may not actually be there. Try it with just Audit Success and see what happens.

Also, the things that Ayn mentioned. Make sure those are correct first.

0 Karma

Clovens
New Member

I made the changes but the indexer is still collecting the data,
I even tried using the eventype but that didn't work either.

[EventType]
REGEX=(?m)Type=Information
DEST_KEY=queue
FORMAT=nullQueue

below is one of the events that I want to discard

LogName=Security
SourceName=Microsoft Windows securityauditing.
EventCode=5156
EventType=0
Type=Information
ComputerName=Computer.domain.inc
TaskCategory=Filtering Platform Connection
OpCode=Info
RecordNumber=711139664
Keywords=Audit Success
Message=The Windows Filtering Platform has allowed a connection.

would you please take a look, thanks.

0 Karma

Ayn
Legend

Two possible causes to this:
- You're trying to do this on a Universal Forwarder. These will not filter data - it has to be done on the indexer.
- Your regex isn't matching properly.

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

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...