How can the log files in the Control-M/Agent proclog directory be limited in size and number? - INCLUDES VIDEO

Version 4
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Agent for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Agent for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M/Agent for UNIX and Microsoft Windows ; All versions



    QUESTION:

    How can the log files in the Control-M/Agent proclog directory be limited in size and number?


    ANSWER:

    The LIMIT_LOG_FILE_SIZE Agent system parameter initializes the file size limit for log files of the AG, AT, and AR processes; when the defined size is reached, the log file is closed and a new one is created.
    The LIMIT_LOG_VERSIONS Agent system parameter sets the number of log files for AG, AT, and AR processes to a defined number. When the number is reached, the older log file is deleted.

    The two parameters can be added or modified in the <AG_HOME>/data/CONFIG.dat file on Unix/Linux
    For a Windows Agent they can be added or modified in the registry under the HKEY_LOCAL_MACHINE\SOFTWARE\BMC Software\Control-M/Agent\CONFIG section.

    LIMIT_LOG_FILE_SIZE
    The value is an integer and is given in megabytes.

    The following example will limit the AG, AG, and AR logs to 10 megabytes each.
    LIMIT_LOG_FILE_SIZE 10

    LIMIT_LOG_VERSIONS
    The value is an integer and represents the number of files

    The following example will limit the AG, AG, and AR logs to have maximum 5 files each. The size of each file is determined by parameter LIMIT_LOG_FILE_SIZE
    LIMIT_LOG_VERSIONS 5


    NOTE:  These parameters also affects the AM process on a Windows host, but not on Unix/Linux



     

    The following video demonstrates this solution:

      

     


    Article Number:

    000156985


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles