How to change the AccessLogValve log file name in JBoss EAP

Solution Verified - Updated -

Issue

  • How to change the AccessLogValve log file name in JBoss EAP?
  • When we enabled org.apache.catalina.valves.AccessLogValve in the $JBOSS_HOME/server/$PROFILE/deploy/$JBOSSWEB/server.xml like the following, the default file format is access.yyyy-mm-dd.log. We would like to change the file format.

                <Valve className="org.apache.catalina.valves.AccessLogValve"
                    prefix="localhost_access_log." suffix=".log"
                    pattern="common" directory="${jboss.server.log.dir}" 
                    resolveHosts="false" />
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.2
    • 4.3
    • 5.x
  • JBossWeb

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.