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

Ralph Goers commented on FLUME-2422:
------------------------------------

After 4 years one would have thought this would have been dealt with. The 
EmbeddedAgent section of the Flume Developers Guide has:
{code:java}
source.interceptors     –       Space-separated list of interceptors
source.interceptors.*   –       Configuration options for individual 
interceptors specified in the source.interceptors property{code}
and
{code:java}
properties.put("source.interceptors", "i1");
properties.put("source.interceptors.i1.type", "static");
properties.put("source.interceptors.i1.key", "key1");
properties.put("source.interceptors.i1.value", "value1");
{code}
EmbeddedAgentConfiguration seems to be modifying the source name so that the 
values shown above should work exactly as shown in the documentation. 
TestEmbeddedAgentConfiguration shows examples of this.

 

> Do we have any documentation on how to configure interceptors for flume log4j 
> appender?
> ---------------------------------------------------------------------------------------
>
>                 Key: FLUME-2422
>                 URL: https://issues.apache.org/jira/browse/FLUME-2422
>             Project: Flume
>          Issue Type: Question
>          Components: Configuration, Docs
>            Reporter: Bijith Kumar
>            Priority: Major
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to