Views:

If TMSM is installed and wrapper.log grows quicky, the administrator may configure the wrapper.conf file. This file can be modified to truncate the wrapper.log file and only log specific messages (warning, error, fatal).

Here are the different parameters available within the wrapper.conf which should be modified:

  • wrapper.logfile.loglevel=INFO - The log level for log file output.
  • wrapper.logfile.maxsize=0 - Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. Configure to the size you prefer.
  • wrapper.logfile.maxfiles=0 - Maximum number of rolled log files which will be allowed before old files are deleted. The default value of 0 implies no limit. Configure to the number of files you want to keep.
  • wrapper.logfile.rollmode=SIZE - Add this exact entry to the .conf file under the logging properties.

Do the following:

  1. Backup the wrapper.conf file located in ..\Addon\TMSM\apache-activemq\bin\win32\ directory.
  2. Open wrapper.conf using Notepad.
  3. Change the following parameters:

    wrapper.logfile.loglevel=WARN
    wrapper.logfile.maxsize=10m
    wrapper.logfile.maxfiles=25
    wrapper.logfile.rollmode=SIZE

     

  4. Save the file.
  5. Restart ActiveMQ for Trend Micro Security service.