Thanks Raji, though that begs the question, how does one redirect to NullSink
from within a decorator?
Basically I need to do this:
if (event body matches allowed regex):
allow through
else:
redirect to NullSink (or drop some other way)
Cheers,
James
From: Rajalakshmi Ramesh [mailto:[email protected]]
Sent: Friday, 16 March 2012 3:55 PM
To: [email protected]
Subject: Re: How to drop an event within a Decorator
try redirecting them to NullSink. That will be the easiest method.
Thanks & Regards
Rajalakshmi (Raji) Ramesh
-------------------------------------------------------
Graduate Student
Georgia Institute of Technology
Atlanta, GA
-------------------------------------------------------
On Fri, Mar 16, 2012 at 12:19 AM, James Stewart
<[email protected]<mailto:[email protected]>> wrote:
Hello all,
I'm using Flume OG and attempting to write a decorator to filter events based
on body text. The decorator will sit in front of the agent, so dropped events
will not affect checksums etc.
The actual filtering seems simple enough, but I can't find any mention of the
correct way to 'drop' an event from within a decorator.
Can anybody enlighten me?
Thanks,
James
________________________________
Information contained in this communication (including any attachments) is
confidential and may be privileged or subject to copyright. If you have
received this communication in error you are not authorised to use the
information in any way and Optiver requests that you notify the sender by
return email, destroy all copies and delete the information from your system.
Optiver does not represent, warrant or guarantee that this communication is
free from computer viruses or other defects or that the integrity of this
communication has been maintained. Any views expressed in this communication
are those of the individual sender. Optiver does not accept liability for any
loss or damage caused directly or indirectly by this communication or its use.
Please consider the environment before printing this email.