How to modify the directory structure of a JBoss EAP managed domain (log, data, and tmp directories)

Solution Verified - Updated -

Issue

  • In a domain setup, we redirect jboss.server.log.dir to a separate log partition. This writes the process controller, server controller and all server.log files to the same location. The problem is that all server instances append to the same server.log file.
  • How can I create a separate server.log file for each server instance yet all logs be under the same log folder?
  • Can I do the same for the tmp and data directories?
  • I'm getting the error JBAS015845: System property jboss.server.log.dir cannot be set via the xml configuration file or from a management client; it's value must be known at initial process start so it can only set from the commmand line. How do I resolve this?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In