4 Replies Latest reply on Jun 3, 2013 10:21 AM by Ravi Reddy

    JBoss EAP 4.3 Periodic Log file rotation issue

    Ravi Reddy Newbie

      Hi Everyone,


      Need help in figuring out an issue that I am facing with RotatingLogFileAppender on JBoss EAP 4.3 version.


      We have our application running on JBoss EAP 4.3 version on Linux. To implement log file rotation on a daily basis I made nessary changes to jboss-log4j.xml file and deployed the changes in production. The log files are getting rotated on a daily basis but the logs writing to the current active log file as well as the log file that was rotated on day one.


      Below is what is happening.


      1. When server starts it will create the below log files

           a) server.log

           b) prod1a-server.log

      2. I have added RotatingLogFileAppender to jboss-log4j.xml file to rotate prod1a-server.log file daily at mid night

      3. On day one at mid night it roated the log file and I see the below log files being created

           a) prod1a-server.log

           b) prod1a-server.log.2013-05-15

      4. But the server is writing logs to both of the above files.

      6. On the next day at mid night it again rotated the log file and created a log file with name prod1a-server.2013-05-16, logs are NOT getting printed to this file but it still continues to write logs to prod1a-server.log.2013-05-15 log file

      7. The size of prod1a-server.log.2013-05-15 log file keep increasin even though the rotation is happening and a new log file was created on every day.

      8. Because of this our purpose not having one log file with huge size is not getting solved.


      I am not sure what's the reason it's behaving like this and I would really appreciate if anyone can help me in understanding what's the real problem here.


      I have attached the jboss-log4j.xml file that we have deployed in our JBoss EAP 4.3 application server running Linux. Please help me in figuring out the issue.


      Thanks in advance,