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?
  • application code is using the systemp property "Djboss.server.log.dir" with in their code for the app logs. Unable to set this system property to the desired directory

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content