flume-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLUME-2422) Do we have any documentation on how to configure interceptors for flume log4j appender?
Date Thu, 21 Mar 2019 16:30:00 GMT

    [ 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: issues-unsubscribe@flume.apache.org
For additional commands, e-mail: issues-help@flume.apache.org


Mime
View raw message