How can I truncate app server logs without stopping app serv

Posted by Robert Cohen on 31-Aug-2016 12:47

Hi all,

I have these app server loges that are getting large - I would like copy and truncate them.  Can I do this without stopping the app server

-rw-rw-rw- 1 mfg  qad  164958235 Aug 31 13:38 qadfinprod.server.log
-rw-rw-rw- 1 mfg  qad  304858115 Aug 31 13:38
-rw-rw-rw- 1 mfg  qad  355700732 Aug 31 13:40 qadui_ASprod.server.log
-rw-rw-rw- 1 mfg  qad  332426299 Aug 31 13:40


All Replies

Posted by Paul Koufalis on 31-Aug-2016 12:52

Yes. Copy them to wherever you want and then echo > qadfinprod.server.log.

You can also configure the log file size threshold and the number of log files in OpenEdge Explorer ( In this case, the broker will automatically rotate and purge your log files.

Posted by Robert Cohen on 31-Aug-2016 13:32

Thanks for this info Paul.  I will copy and truncate as suggested.  I looked in the file at the UBroker AppServer template file information and current setting and did not see any parameters for automatically rotating and purge the log files.  Do you know what these are and if i adjust them Will I have to restart the app server

Posted by Paul Koufalis on 31-Aug-2016 13:43

Look in $DLC/properties/


       Limit on how many broker log files will be kept on the system when

       there is a threshold limit. It represents the number of log files

       including the current one. Includes any rolled over log files that

       already exist when process started


       Specifies a limit on how big the log file can get (in bytes).  When

       the log is full the server creates a new log file with a sequence

       number (1 to 999,999).

       Possible Values:  500000 - 2147483647.



I'm pretty sure that you'll need to restart the Apsvs.

Posted by Robert Cohen on 31-Aug-2016 14:29

thanks Paul , I will check out the README, and thanks for the parms

This thread is closed