Getting Data In

Basic Windows Event filter via Universal Forwarder

bcecka
Engager

I've seen various answers to this general area of questioning, but I'm wondering what the current best practice is.

I've just setup a brand new Splunk server on a Linux machine, and I'm starting off by pointing Windows 2008 R2 servers to it with the Universal Forwarder. The catch here is that I don't want everything from the Windows Event Logs. I'm only interested in Warnings and Errors and ideally I don't want to have to parse them out on the server... I'd much prefer that they don't get transmitted at all. Thoughts?

1 Solution

piebob
Splunk Employee
Splunk Employee

universal and light forwarders do not parse events, which is part of why they have a smaller resource footprint. if you want to filter specific events out before they hit your indexer, you must use a heavy forwarder (so that it can check the events individually). information about doing this is here:
http://www.splunk.com/base/Documentation/latest/Deploy/Routeandfilterdatad

View solution in original post

piebob
Splunk Employee
Splunk Employee

universal and light forwarders do not parse events, which is part of why they have a smaller resource footprint. if you want to filter specific events out before they hit your indexer, you must use a heavy forwarder (so that it can check the events individually). information about doing this is here:
http://www.splunk.com/base/Documentation/latest/Deploy/Routeandfilterdatad

bcecka
Engager

Based upon this, I installed a full instance, added some local logs, disabled splunkweb, and edited these files under /etc/system/local/:

props.conf

[source::WinEventLog:Application]
TRANSFORMS-null= setnull

[source::WinEventLog:DNS Server]
TRANSFORMS-null= setnull

[source::WinEventLog:Directory Service]
TRANSFORMS-null= setnull

[source::WinEventLog:Security]
TRANSFORMS-null= setnull

[source::WinEventLog:System]
TRANSFORMS-null= setnull

transforms.conf

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

Is this the appropriate way of achieving what I'm looking for?

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...