Discussion:
[jira] [Created] (LOG4J2-545) Multiple FlumeAppender Agents
Michael Friedmann (JIRA)
2014-02-20 16:33:19 UTC
Permalink
Michael Friedmann created LOG4J2-545:
----------------------------------------

Summary: Multiple FlumeAppender Agents
Key: LOG4J2-545
URL: https://issues.apache.org/jira/browse/LOG4J2-545
Project: Log4j 2
Issue Type: Improvement
Reporter: Michael Friedmann


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.1.5#6160)
Michael Friedmann (JIRA)
2014-02-20 16:35:28 UTC
Permalink
Michael Friedmann created LOG4J2-545:
----------------------------------------

Summary: Multiple FlumeAppender Agents
Key: LOG4J2-545
URL: https://issues.apache.org/jira/browse/LOG4J2-545
Project: Log4j 2
Issue Type: Improvement
Reporter: Michael Friedmann


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.1.5#6160)
Ralph Goers (JIRA)
2014-03-01 00:26:22 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916628#comment-13916628 ]

Ralph Goers commented on LOG4J2-545:
------------------------------------

This is not a simple change. If you can provide a patch I would be happy to look at it. Otherwise it is going to remain a fairly low priority item.
Post by Michael Friedmann (JIRA)
Multiple FlumeAppender Agents
-----------------------------
Key: LOG4J2-545
URL: https://issues.apache.org/jira/browse/LOG4J2-545
Project: Log4j 2
Issue Type: Improvement
Reporter: Michael Friedmann
<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.
<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.1.5#6160)
Ralph Goers (JIRA)
2014-03-01 00:26:24 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers reassigned LOG4J2-545:
----------------------------------

Assignee: Ralph Goers
Post by Michael Friedmann (JIRA)
Multiple FlumeAppender Agents
-----------------------------
Key: LOG4J2-545
URL: https://issues.apache.org/jira/browse/LOG4J2-545
Project: Log4j 2
Issue Type: Improvement
Reporter: Michael Friedmann
Assignee: Ralph Goers
<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.
<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.1.5#6160)
Ralph Goers (JIRA)
2014-06-11 06:12:01 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14027460#comment-14027460 ]

Ralph Goers commented on LOG4J2-545:
------------------------------------

I should also add that you can configure the FlumeAppender using the standard Flume properties.
Post by Michael Friedmann (JIRA)
Multiple FlumeAppender Agents
-----------------------------
Key: LOG4J2-545
URL: https://issues.apache.org/jira/browse/LOG4J2-545
Project: Log4j 2
Issue Type: Improvement
Reporter: Michael Friedmann
Assignee: Ralph Goers
<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.
<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.2#6252)
Matt Sicker (JIRA)
2014-08-28 04:03:59 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Sicker updated LOG4J2-545:
-------------------------------

Component/s: Flume Appender
Post by Michael Friedmann (JIRA)
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
<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.
<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.2#6252)
Kamal Bahadur (JIRA)
2014-09-11 00:20:35 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129425#comment-14129425 ]

Kamal Bahadur commented on LOG4J2-545:
--------------------------------------

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

<Agents hosts="host1:port1,host2:port2" />
Post by Michael Friedmann (JIRA)
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
<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.
<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)
Kamal Bahadur (JIRA)
2014-09-11 00:21:33 UTC
Permalink
[ 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" />
Post by Michael Friedmann (JIRA)
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
<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.
<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)

Loading...