0 Replies Latest reply on Feb 3, 2015 3:00 PM by Praneshkumar Pandian

    JBoss Access Log Rotation every midnight not working

    Praneshkumar Pandian Newbie



      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.




      I'm using jboss-logmanager-1.5.1.Final-redhat-1.jar


                  <periodic-rotating-file-handler name="ACCESSLOG" autoflush="true">


                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>


                      <file relative-to="jboss.server.log.dir" path="jboss_access.log"/>

                      <suffix value=".yyyy-MM-dd-HH"/>

                      <append value="true"/>



                  <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"/>