How to change log location in a domain mode in JBoss EAP 6

Solution Verified - Updated -

Issue

  • How to change log location in a domain mode?
  • How to modify the location for the server.log file by default the log is written under jboss.server.log.dir directory, but I need that file is located under /var/log/$serverName/ directory. Is it possible to do this in JBoss EAP 6.4 domain mode?
  • How to redirect server.log to a custom folder in domain mode of JBoss EAP 6?

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.