4

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

2

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

1
  • 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

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