Hello,
I'm using JBoss 6.2.0 EAP in linux and have enable jboss access log under virtual server tag. I wanted to rotate the access log as like server.log do and made a configuration in standalone.xml like below. But I don't see the jboss_access.log getting rotated instead if I restart the server I see the rotation. Any suggestions would be great to make it work.
jboss_access.2015-02-01
I'm using jboss-logmanager-1.5.1.Final-redhat-1.jar
<periodic-rotating-file-handler name="ACCESSLOG" autoflush="true">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="jboss_access.log"/>
<suffix value=".yyyy-MM-dd-HH"/>
<append value="true"/>
</periodic-rotating-file-handler>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<access-log pattern="%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i %{Host}i %D" prefix="jboss_access." rotate="true">
<directory path="." relative-to="jboss.server.log.dir"/>
</access-log>
</virtual-server>