Software AG Products 10.5 | Administering Integration Server | Setting Up the Server Log | Limiting the Number of Server Log Files Kept by Integration Server
 
Limiting the Number of Server Log Files Kept by Integration Server
By default, Integration Server keeps archived server log files indefinitely. Because server.log files can rapidly become large or numerous when using more verbose logging levels, you might want to limit the number server log files that Integration Server keeps on the file system.
Integration Server provides the watt.server.serverlogFilesToKeep server configuration parameter that you can use to set to limit the number of server log files that Integration Server maintains on the file system, including the current server log file. When Integration Server reaches the limit for the number of server log files, Integration Server deletes the oldest archived server log file each time Integration Server rotates the server log. Following are some examples of values for watt.server.log.filesToKeep and the resulting Integration Server behavior:
*If you set watt.server.serverlogFilesToKeep to n, Integration Server keeps the current server log file (server.log) and up to n-1 archived server log files. For example, if you set watt.server.log.filesToKeep to 30, Integration Server keeps the current server log file (server.log) and up to 29 archived server log files.
*If you set watt.server.serverlogFilesToKeep to 1, Integration Server keeps the current server.log file and no previous server.log files. When Integration Server rotates the server.log, Integration Server does not create an archive file for the previous server log.
*If you set watt.server.serverlogFilesToKeep to 0, or any value less than 1, Integration Server keeps an unlimited number of server log files.
The default value of watt.server.serverlogFilesToKeep is -1, indicating that there is no limit to the number of server log files that Integration Server maintains.
For more information about the watt.server.serverlogFilesToKeep parameter, review the parameter description in Server Configuration Parameters.