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