Log4j 2
  1. Log4j 2
  2. LOG4J2-262

FlumeAppender should allow interceptors to be specified on embedded agent

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta6
    • Fix Version/s: 2.0-beta7
    • Component/s: Appenders
    • Labels:
      None

      Description

      A Flume agent can be configured to have interceptors. Events are sent to the interceptors which can drop or modify them before passing them on. Currently, the embedded Flume agent does not allow them to be set because it prevents a configuration with any property that starts with sources.

      This is annoying when setting up a configuration to log Flume itself. In our environment we tag log events with the environment, host and component using interceptors. Sending Flume's logs to the same agent causes issues so the logs have to be sent to another agent. While it would be possible to configure that alternative agent to accept incoming events on a separate port per host and component that is a lot of configuration work to maintain.

      The provided patch allows interceptors to be set but continues to disallow other properties that starts with sources. Updated unit tests and a documentation update are also included.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Edward Sargisson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development