Running Business Processes and Composite Applications : webMethods Integration Server Administrator’s Guide : 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.
To limit the number of server logs maintained by Integration Server
1. In Integration Server Administrator, go to the Settings > Extended page and click Show and Hide Keys. Integration Server Administrator displays a list of the Integration Server configuration properties you can change using this method.
2. Select the check box next to the watt.server.serverlogFilesToKeep property.
3. Click Save Changes. Integration Server Administrator displays the property in the Extended Settings box.
4. Click Edit Extended Settings.
5. In the Extended Settings box, set the watt.server.serverlogFilesToKeep parameter to an integer to indicate the number of server log files that you want Integration Server to keep. Set to -1 if you do not want to limit the number of server log files that Integration Server keeps.
6. Click Save Changes.
7. Restart Integration Server.
Copyright © 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback