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 qadfinprod.broker.log-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 qadui_ASprod.broker.log
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 (ubroker.properties). In this case, the broker will automatically rotate and purge your log files.
Thanks for this info Paul. I will copy and truncate as suggested. I looked in the ubroker.properties 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
Look in $DLC/properties/ubroker.properties.README:
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.
thanks Paul , I will check out the README, and thanks for the parms