How to change the AccessLogValve log file name in JBoss EAP
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 isaccess.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.