Integration Server 10.3 | Integration Server Administrator's Guide | Setting Up the Server Log | Configuring the Server Log to Rotate Based on Size
 
Configuring the Server Log to Rotate Based on Size
By default, the Integration Server server.log rotates daily at midnight. If services log large payloads, the server.log can increase rapidly in size. In addition to consuming resources, a large server.log file can be difficult to examine. To avoid this, you can configure Integration Server to rotate the server.log file by size in addition to rotating by day.
Integration Server provides a server configuration parameter that you can use to specify the size limit for the server log. When watt.server.serverlogRotateSize is set to a valid value, Integration Server rotates the server.log when the server.log file size reaches that size or at midnight, whichever occurs first. For example, if watt.server.serverlogRotateSize is set to 100KB and at midnight the server.log file size is 80KB, Integration Server still rotates the server.log file at midnight.
When Integration Server rotates the server.log file, Integration Server renames the current log to use the archive file name and starts a new server.log file. If rotating based on size, the archive file name uses the format server.log_yyyyMMdd_HHmmssSSSZ, where yyyyMMdd_HHmmssSSSZ is the date and time the log file was created.
Note:
There is no default value for the watt.server.serverlogRotateSize parameter. If no value is specified for watt.server.serverlogRotateSize, Integration Server rotates the server.log file at midnight only. If an invalid value is specified, Integration Server resets the parameter to -1. Note that a value of -1 results in the same behavior as specifying no value for the parameter.
For more information about the watt.server.serverlogRotateSize parameter, review the parameter description in Server Configuration Parameters.