Antoine_Sauteron_1266

Automation Engine server log rotation

Discussion created by Antoine_Sauteron_1266 on May 8, 2017
Latest reply on May 9, 2017 by Wolfgang_Brueckler_1288
Some of you may be wondering how the log rotation works in an AE system.
Here are a few hints.

1 - Server logs rotate after a certain period or once they reach a given size.


This is set in UC_SYSTEM_ SETTINGS > 'CHANGE_LOGGING_DAYS' and 'CHANGE_LOGGING_MB' keys :

CHANGE_LOGGING_DAYS : The time period in days after which the log files are changed.
Allowed values: 1 to 3276
Default value: 14

CHANGE_LOGGING_MB : The size in MB after which the log files are changed.
Allowed values: 1 to 32767
Default value: 20

If one of these conditions is met logs will be rotated: a new log file will be created.

2 - The maximum number of log files that should be stored locally on the server is determined by the parameter 'logcount=' in the [GLOBAL] section of ucsrv.ini.


For example if you set 'logcount=4' there will be up to 4 log files per server process:

  • CPsrv_log_001_00.txt, CPsrv_log_001_01.txt, CPsrv_log_001_02.txt, CPsrv_log_001_03.txt
  • WPsrv_log_001_00.txt, WPsrv_log_001_01.txt, WPsrv_log_001_02.txt, WPsrv_log_001_03.txt
  • ...

The location of log files are set by this parameter in ucsrv.ini > [GLOBAL]
logging=..\temp\$$srv_log_*_##.txt

Once the number of files set using this parameter has been reached, then existing files will be overwritten.


If you need to retrieve some logs that have already been overwritten, you may try the procedure described in this post.

Best regards,
Antoine

Outcomes