Does anyone have advice or a pointer to articles on how to centralize logs in JBoss?

JBoss will log to syslog, which makes it easy, but doing so breaks multi line debug messages (and Jboss loves dropping exception stack traces in the logs). I can rsync the logs, but that isn't realtime.

Log4j has appenders for TCP and multicast sockets, so it seems like something probably exists for streaming logs, but I haven't found a receiver for the data.

Thanks

link|improve this question

80% accept rate
feedback

1 Answer

up vote 1 down vote accepted

I think you want log4j's SocketAppender / SocketReceiver functionality.

link|improve this answer
1  
That is the solution I eventually went with. The log4j distribution has a SocketServer appliation that can be run to catch logs sent from the SocketAppender. Work of caution, if Jboss can't write logs it stop processing requests. VERY BAD. Avoid using the TCP SocketAppender since a network break will cause JBoss to lockup. The UDP or Multicast appenders are a better choice. – mfarver Nov 26 '09 at 22:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.