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 "Cullender, Daniel" <Da...@rmb.co.za> on 2014/07/11 11:08:46 UTC

Multicast Appenders

Hi Log4J dev team,

First off, thanks for a great product - we have integrated log4j2 rc2 into our Tomcat instance (even though we initially setup it up of log4j) and it works like a charm!

Quick Question - are there any multicast appenders (using, for example, jgroups) available for log4j2? If not, are there any plans to build one?

Thanks Again
Daniel

This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html

RE: Multicast Appenders

Posted by "Cullender, Daniel" <Da...@rmb.co.za>.
Thanks for the replies,

We have quite a few environments (VM’s) that we would like to consolidate the categories WARN (and above) to a single environment (VM) for processing (ie database persistence, display etc) but we cannot afford to introduce any “side affects” for this requirement . JMS with persistent topics may consume threads and memory (especially if the log messages are not being consumed fast enough or if the JMS consumer / server goes down) and persisting directly to a database may introduce problems if the database is down, under strain etc. Multicast seemed like the most unobtrusive way of doing this – Granted that messages could be missed / lost, but for our scenario, this is not really a problem (since each environment logs to a file as well).

We Will look at wiring a JGroups Appender (implemented with the Asyn Appender) and if it is any good, we will provide the source. We are also looking at flume as well.

Daniel

From: Matt Sicker [mailto:boards@gmail.com]
Sent: 11 July 2014 02:55 PM
To: Log4J Developers List
Subject: Re: Multicast Appenders

JMS topics are one way to go for that (especially if you use durable subscriptions). Flume is neat of course. The UDP socket stuff might work with UDP multicast, but I'm not sure. Using any of the database appenders would work for this, too.
JGroups, though, does sound interesting.

On 11 July 2014 06:48, Gary Gregory <ga...@gmail.com>> wrote:
Daniel,

Thank you :-)

Can you use JMS or Flume to the same effect? These are supported in Log4j 2.
Gary

On Fri, Jul 11, 2014 at 5:08 AM, Cullender, Daniel <Da...@rmb.co.za>> wrote:
Hi Log4J dev team,

First off, thanks for a great product - we have integrated log4j2 rc2 into our Tomcat instance (even though we initially setup it up of log4j) and it works like a charm!

Quick Question - are there any multicast appenders (using, for example, jgroups) available for log4j2? If not, are there any plans to build one?

Thanks Again
Daniel

This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html


--
E-Mail: garydgregory@gmail.com<ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition<http://www.manning.com/tahchiev/>
Spring Batch in Action<http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com<http://garygregory.wordpress.com/>
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory



--
Matt Sicker <bo...@gmail.com>>

This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html

Re: Multicast Appenders

Posted by Matt Sicker <bo...@gmail.com>.
JMS topics are one way to go for that (especially if you use durable
subscriptions). Flume is neat of course. The UDP socket stuff might work
with UDP multicast, but I'm not sure. Using any of the database appenders
would work for this, too.

JGroups, though, does sound interesting.


On 11 July 2014 06:48, Gary Gregory <ga...@gmail.com> wrote:

> Daniel,
>
> Thank you :-)
>
> Can you use JMS or Flume to the same effect? These are supported in Log4j
> 2.
>
> Gary
>
>
> On Fri, Jul 11, 2014 at 5:08 AM, Cullender, Daniel <
> Daniel.Cullender@rmb.co.za> wrote:
>
>> Hi Log4J dev team,
>>
>> First off, thanks for a great product - we have integrated log4j2 rc2
>> into our Tomcat instance (even though we initially setup it up of log4j)
>> and it works like a charm!
>>
>> Quick Question - are there any multicast appenders (using, for example,
>> jgroups) available for log4j2? If not, are there any plans to build one?
>>
>> Thanks Again
>> Daniel
>>
>> This e-mail is subject to a disclaimer, available at
>> http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Multicast Appenders

Posted by Gary Gregory <ga...@gmail.com>.
Daniel,

Thank you :-)

Can you use JMS or Flume to the same effect? These are supported in Log4j 2.

Gary


On Fri, Jul 11, 2014 at 5:08 AM, Cullender, Daniel <
Daniel.Cullender@rmb.co.za> wrote:

> Hi Log4J dev team,
>
> First off, thanks for a great product - we have integrated log4j2 rc2 into
> our Tomcat instance (even though we initially setup it up of log4j) and it
> works like a charm!
>
> Quick Question - are there any multicast appenders (using, for example,
> jgroups) available for log4j2? If not, are there any plans to build one?
>
> Thanks Again
> Daniel
>
> This e-mail is subject to a disclaimer, available at
> http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory