You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "nicolas maillard (JIRA)" <ji...@apache.org> on 2013/06/13 13:53:21 UTC

[jira] [Created] (FLUME-2086) RegexExtractorInterceptor on header values

nicolas maillard created FLUME-2086:
---------------------------------------

             Summary: RegexExtractorInterceptor on header values
                 Key: FLUME-2086
                 URL: https://issues.apache.org/jira/browse/FLUME-2086
             Project: Flume
          Issue Type: Improvement
            Reporter: nicolas maillard
            Priority: Minor


It would be nice to be able to apply the RegexExtractorInterceptor to previously defined header values and not event text in some cases.
For example in the spoolingDirectory the name of the file might hold information not present in the events. You could parse the file name to extract a date or a type and use it as an extra header value.

A limited change to RegexExtractorInterceptor with a new parameter headerKy if not empty in the intercept method we could match against context.getString(headerkey) instead of event.getBody()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira