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!

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...