flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jyotsna G <jyotsn...@gmail.com>
Subject Re: Flume regex extractor interceptor
Date Fri, 20 Apr 2018 09:20:23 GMT
Thank you so much.

Implemented a custom interceptor as suggested.

Regards,
Jyotsna

On Fri, Apr 20, 2018 at 2:06 PM, Ferenc Szabo <szaboferee@apache.org> wrote:

> 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