Automic Workload Automation

  • 1.  Automation Engine server log rotation

    Posted May 08, 2017 11:37 AM
    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


  • 2.  Automation Engine server log rotation

    Posted May 09, 2017 03:37 AM

    I’ve 3 more hints for this discussion.

    1. The parameters CHANGE_LOGGING_DAYS and CHANGE_LOGGING_MB are used for the log logs rotation of Agents as well.
      https://docs.automic.com/documentation/webhelp/english/AWA/12.0/DOCU/12.0/AWA%20Guides/help.htm#AWA/Admin/admin_UC_SYSTEM_SETTINGS.htm%3FTocPath%3DAdministration%2520Guide%7CAdministering%2520the%2520Automation%2520Engine%7CConfiguration%7CSettings%2520in%2520Variables%7C_____26

    2. The parameters CHANGE_LOGGING_DAYS will affect the log change of some takes types as well.
      For example: Time Events, Console Events, etc. 

    3. The parameter logcount specifies the number of stored log files, the current one (number 00) is not considered.
      For example: The default value of 'logcount=10', leads in 11 log files per server process: WPsrv_log_001_00.txt, WPsrv_log_001_01.txt … WPsrv_log_001_10.txt.




  • 3.  Automation Engine server log rotation

    Posted May 09, 2017 04:08 AM
    Thanks for this additional information Josef_Scharl_103 !


  • 4.  Automation Engine server log rotation

    Posted May 09, 2017 04:16 AM
    Thanks a lot Josef_Scharl_103 now I got the answer - I ever wondered why logcount is actually logcount +1..

    Thank you very much!!


    :)