You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Patrick Wendell (JIRA)" <ji...@apache.org> on 2012/07/09 20:04:35 UTC

[jira] [Updated] (FLUME-1276) Create a static header interceptor

     [ https://issues.apache.org/jira/browse/FLUME-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Wendell updated FLUME-1276:
-----------------------------------

    Attachment: FLUME-1276.patch.v1.txt

Here is a complete patch for this JIRA, ready for review.

One alternative not explored here is to take a comma-separated list of header <k,v> pairs rather than only a single pair.

This patch takes the simpler approach of facilitating a single pair, where multiple interceptors can be chained.
                
> Create a static header interceptor
> ----------------------------------
>
>                 Key: FLUME-1276
>                 URL: https://issues.apache.org/jira/browse/FLUME-1276
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Arvind Prabhakar
>            Assignee: Patrick Wendell
>             Fix For: v1.3.0
>
>         Attachments: FLUME-1276.patch.v1.txt
>
>
> A common and simple usecase for interceptors is to stamp a static header on the events that enter the source. This could later be used for doing contextual routing of the events or to output them to different paths in the terminal sink.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira