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:[email protected]]
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 
<[email protected]<mailto:[email protected]>> 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 
<[email protected]<mailto:[email protected]>> 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: [email protected]<mailto:[email protected]> | 
[email protected] <mailto:[email protected]>
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 <[email protected]<mailto:[email protected]>>

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

Reply via email to