Flume
  1. Flume
  2. FLUME-1276

Create a static header interceptor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

      1. FLUME-1276.patch.v1.txt
        10 kB
        NO NAME
      2. FLUME-1276.patch.v2.txt
        10 kB
        NO NAME

        Activity

        Hide
        NO NAME added a comment -

        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.

        Show
        NO NAME added a comment - 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.
        Hide
        Hari Shreedharan added a comment -

        Could you please upload this to review board? It would be easier to review and post comments. Thanks.

        Show
        Hari Shreedharan added a comment - Could you please upload this to review board? It would be easier to review and post comments. Thanks.
        Hide
        NO NAME added a comment -

        Attaching a file without trailing whitespace as per Hari's review.

        Show
        NO NAME added a comment - Attaching a file without trailing whitespace as per Hari's review.
        Hide
        Hari Shreedharan added a comment -

        Patch committed. Thanks, Patrick!

        Show
        Hari Shreedharan added a comment - Patch committed. Thanks, Patrick!

          People

          • Assignee:
            NO NAME
            Reporter:
            Arvind Prabhakar
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development