Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question

closed as not constructive by voretaq7 Nov 13 '12 at 3:46

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

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

share|improve this answer
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.