4 Replies Latest reply on Apr 1, 2010 3:11 AM by Thomas Chang

    How to force the server.log rotate?

    Thomas Chang Apprentice

      Background to my question:


      We have a monitoring tool waching the server.log. Everytime if there is an exception appears in the server.log it will send out an alert. The problem is: after the problem which causes the exception is fixed, the monitoring tool will keep sending out alert since the exception message still stay in the server.log. In this case we want to force the server.log to rotate so that there is no exception message in the server.log.


      Till now I did as follow:

      stop the jboss as

      rename the server.log or even delete it

      restart the jboss as so that a new server.log is cerated.


      I am not sure if there is another better way to do this.