You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2014/07/17 01:37:04 UTC

[jira] [Comment Edited] (LOG4J2-720) How to configure interceptor in embedded flume appender

    [ https://issues.apache.org/jira/browse/LOG4J2-720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064332#comment-14064332 ] 

Ralph Goers edited comment on LOG4J2-720 at 7/16/14 11:35 PM:
--------------------------------------------------------------

You won't find references to any Flume properties within the Embedded version of the Appender as all those properties are passed on directly to Flume.  The properties that are passed to Flume are constructed in the createProperties method of FlumeEmbeddedManager. That said, the Log4j documentation is probably in error as it was written when Log4j integrated with Flume via using Flume internal methods. As of Flume 1.4 it now uses the Flume Embedded Agent - http://flume.apache.org/FlumeDeveloperGuide.html#embedded-agent. From what I can tell from that page Flume does not support Interceptors in the embedded agent.


was (Author: ralph.goers@dslextreme.com):
You won't find references to any Flume properties within the Embedded version of the Appender as all those properties are passed on directly to Flume.  The properties that are passed to Flume are constructed in the createProperties method of FlumeEmbeddedManager. That said, the Log4j documentation is probably in error as it was written when Log4j integrated with Flume via the RPC client. As of Flume 1.4 it now uses the Flume Embedded Agent - http://flume.apache.org/FlumeDeveloperGuide.html#embedded-agent. From what I can tell from that page Flume does not support Interceptors in the embedded agent.

> How to configure interceptor in embedded flume appender
> -------------------------------------------------------
>
>                 Key: LOG4J2-720
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-720
>             Project: Log4j 2
>          Issue Type: Question
>    Affects Versions: 2.0-rc2
>            Reporter: Bijith Kumar
>
> The current doc says "Interceptors can be specified for the source using "sources.log4j-source.interceptors"". However, this doesn't work. As the property name syntax is a bit different for xml configuration, I did try different properties like "source.interceptors", "interceptors" and "interceptor" etc. None worked. I could not find any reference to interceptors in EmbeddedAgentConfiguration.java either.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org