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 "Kamal Bahadur (JIRA)" <ji...@apache.org> on 2014/09/11 02:21:33 UTC

[jira] [Comment Edited] (LOG4J2-545) Multiple FlumeAppender Agents

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

Kamal Bahadur edited comment on LOG4J2-545 at 9/11/14 12:20 AM:
----------------------------------------------------------------

Would it be easier to implement a new plugin "Agents" and support this feature?

<Agents hosts="host1:port1,host2:port2" />




was (Author: kamalb):
Would it be easier to implement another plugin "Agents" and support this feature?

<Agents hosts="host1:port1,host2:port2" />



> Multiple FlumeAppender Agents
> -----------------------------
>
>                 Key: LOG4J2-545
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-545
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Flume Appender
>            Reporter: Michael Friedmann
>            Assignee: Ralph Goers
>
> Currently, when configuring a FlumeAppender in log4j2.xml, each Agent is configured on a separate line, e.g.:
> <Agent host="host1" port="port1" />
> <Agent host="host2" port="port2" />
> This makes it difficult to configure dynamically via properties as one may not know ahead of time how many Flume agents are available.
> Consider supporting the following configuration:
> <Agent hosts="host1:port1,host2:port2" />
> This allows for a single property containing all the hosts and ports to be injected at runtime.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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