How to change the AccessLogValve log file name in JBoss EAP
Issue
- How to change the
AccessLogValvelog file name in JBoss EAP? -
When we enabled
org.apache.catalina.valves.AccessLogValvein the$JBOSS_HOME/server/$PROFILE/deploy/$JBOSSWEB/server.xmllike 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
