Getting Data In

UniversalForwarder does not filter data

templier
Communicator

Hello.

I would like sort the data from Windows Security log, but some reason still passed to all the data in Splunk server.

In directory /splunk/etc/system/local/ I have created two files:

  • props.conf

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

  • transforms.conf

    [wminull]
    REGEX=(?m)^EventCode=(528|529|538|540|602|608|609|612|624|628|629|630|631|632|633|634|635|636|637|638|639|642|645|647|668)
    DEST_KEY=queue
    FORMAT=nullQueue

But still in addition EventCode from transforms.conf in Splunk i can see another EventCode.

Maybe someone did a similar sort and can share their code examples or point out my mistakes.

Thanks!

0 Karma
1 Solution

linu1988
Champion

Hello,
Your question is itself the answer :). Universal forwarder will not filter your data through props/transforms.conf. It should be placed on the indexer. in Splunk 6 there are options to specify which one actually you want to forward but you need to filter the

_http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/

if you really need to filter from forwarder use a heavy forwarder. You will several examples of it how to do in splunkbase.

Thanks

View solution in original post

linu1988
Champion

Hello,
Your question is itself the answer :). Universal forwarder will not filter your data through props/transforms.conf. It should be placed on the indexer. in Splunk 6 there are options to specify which one actually you want to forward but you need to filter the

_http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/

if you really need to filter from forwarder use a heavy forwarder. You will several examples of it how to do in splunkbase.

Thanks

templier
Communicator

Hmm well it's true.
Thank you opened my eyes to this problem.
Read the article and try to solve this problem!

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...