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

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, 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