Previous Topic: Set Up and Enable Error Logging

Next Topic: Collect Detailed Agent Connection Data with an Agent Connection Manager Trace Log

Limit the Number of Log Files Saved

You can limit the number of log files that a Web Agent keeps. For example, if you want to save disk space on the system that stores your Web Agent Logs, you can limit the number of log files using the following parameter:

LogFilesToKeep

Specifies the number of Web Agent log files that are kept. New log files are created in the following situations:

Changing the value of this parameter does not automatically delete any existing logs files which exceed the number that you want to keep. For example, If your system has 500 log files stored, and you decide to keep only 50 of those files, the Web Agent does not delete the other 450 files.

Setting the value of this parameter to zero retains all the log files.

Default: 0

To limit the number of log files saved
  1. Archive or delete any existing log files from your system.
  2. Set the value of the LogAppend parameter to no.
  3. Change the value of the LogFilesToKeep parameter to the number of log files that you want to keep.