flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferenc Szabo <szabofe...@apache.org>
Subject Re: Flume regex extractor interceptor
Date Fri, 20 Apr 2018 08:36:16 GMT
Hi Jyotsna,

the Regex Extractor Interceptor reads only the event body and writes into
the headers.

However, you can write custom interceptor easily by implementing this
interface:


https://github.com/apache/flume/blob/trunk/flume-ng-core/src/main/java/org/apache/flume/interceptor/Interceptor.java

as you can see, you get the whole Event.

Regards,
Ferenc

On Fri, Apr 20, 2018 at 8:43 AM, Jyotsna G <jyotsna.g@gmail.com> wrote:

> Hi All,
>
> Will flume regex extractor interceptor be applied on flume even header
> values also or only the body?
>
> Can i use it to extract a substring out of the fileHeader value in the
> event header?
>
> Thanks,
> Jyotsna
>

Mime
View raw message