[jboss-dev-forums] [JBoss AS 7 Development] - JBoss 7.1 Domain Mode Logging - configuring per instance log locations
davidmac
do-not-reply at jboss.com
Wed Jul 11 09:37:41 EDT 2012
davidmac [https://community.jboss.org/people/davidmac] created the discussion
"JBoss 7.1 Domain Mode Logging - configuring per instance log locations"
To view the discussion, visit: https://community.jboss.org/message/747493#747493
--------------------------------------------------------------
We have a security policy that requires the JBoss installation (in Linux) to be installed under /home/someuser, but that partition isn't very big so we need logging output to go somewhere under /var/log/*. So suppose we have 2 controlled server instances (S1 and S2) that live here (within the home directory):
jboss/domain/servers/S1
jboss/domain/servers/S2
With this setup (having not changed the logging config) we get these logs on the home partition:
jboss/domain/log/host-controller.log
jboss/domain/log/process-controller.log
jboss/domain/servers/S1/log/server.log
jboss/domain/servers/S1/log/boot.log
jboss/domain/servers/S2/log/server.log
jboss/domain/servers/S2/log/boot.log
We need to configure:
* Domain logs (jboss/domain/log/*) to go to /var/log/jboss.
* S1's logs (jboss/domain/servers/S1/log/*) to go to /var/log/S1
* S2's logs (jboss/domain/servers/S1/log/*) to go to /var/log/S2
It seems like some approach to setting jboss.server.log.dir in various scopes in the management console (or config file) would work but it isn't clear if they would conflict or get overridden properly. My assumption for dealing with S1 and S2 is to set the jboss.server.log.dir system property independently on each server configuration's system properties. Should that work?
How to set the location of the domain logs?
Or have you come up with a better approach or practice? (Eventually we want to log to a central logging location ala syslog appender or some such).
Note that we don't want to resort to using symlinks as that would complicate configuration management.
Thanks for any pointers.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/747493#747493]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120711/d416e4db/attachment.html
More information about the jboss-dev-forums
mailing list