The server provides two log file rotation listener, the copy log file rotation listener and the summarize log file rotation listener, which you can enable with a log publisher.
Log file rotation listeners allow the server to perform a task on a log file as soon as it has been rotated out of service. Custom log file listeners can be created with the Server SDK.
The copy log file rotation listener can be used to compress and copy a recently-rotated log file to an alternate location for long-term storage. The original rotated log file is subject to deletion by a log file retention policy, but the copy is not automatically removed.
The summarize log file rotation listener invokes the summarize-access-log tool on a recently-rotated log file and writes its output to a file in a specified location. This provides information about the number and types of operations processed by the server, processing rates and response times, and other useful metrics. Use this with access loggers that log in a format that is compatible with the summarize-access-log tool, including the file-based-access and operation-timing-access logger types.