Refine your search:

I have a DC that forwards a huge amount of wineventlog:Security events to my indexer. I want to configure the forwarder so that it won't forward events that have an EventCode value I specify. I.E. EventCode 5156

What would be the best way of going about this? Has anybody already done something similar, and if so, what would you suggest to be a less important EventCode?

asked 07 Oct '10, 19:49

muebel's gravatar image

muebel ♦
1.0k1117
accept rate: 40%


One Answer:

Splunk is actually running on the DC? Are you using a Lightweight or heavyweight forwarder?

You can use nullQueue to drop the events, but IIRC you will need to run as a heavyweight forwarder. Otherwise, you would need to filter at the indexer.


Take a look at this thread:
http://answers.splunk.com/questions/6179/wmi-filter-remote-eventlogs-by-host-groups


Since you said you were using an LWF, make these changes on your indexer. Configure a transform to match the traffic you want to discard.

# transforms.conf
[drop-noise]
REGEX=(?ms)host=noisyhostname.*?EventCode=5156
DEST_KEY = queue
FORMAT = nullQueue

Then enable the transform in props.conf:

# props.conf
[source://xxx]
TRANSFORMS-dropnoise = drop-noise

Note - I don't use LWF, so the regex may not be quite right. I would favor using "host=" over "ComputerName=" if it works, on the premise that it would be Splunk-assigned rather than part of the message body, but I'm not 100% sure host is valid here.

link

answered 07 Oct '10, 19:59

southeringtonp's gravatar image

southeringtonp ♦
4.5k1215
accept rate: 35%

edited 07 Oct '10, 21:54

now that I think on it I believe it is a lightweight forwarder. So I can't filter out specific events before they get sent across? How could I configure the indexer to filter a specific eventtype from a specific host?

(07 Oct '10, 20:23) muebel ♦

See edits above and reference to previous question.

(07 Oct '10, 21:35) southeringtonp ♦
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×328
×76

Asked: 07 Oct '10, 19:49

Seen: 551 times

Last updated: 07 Oct '10, 21:54

Copyright © 2005-2012 Splunk, Inc. All rights reserved.