About log compression
The server supports the ability to compress log files as they are written.
This feature can significantly increase the amount of data that can be stored in a given amount of space so that log information can be kept for a longer period of time.
Because of the inherent problems with mixing compressed and uncompressed data, compression can only be enabled at the time the logger is created. Compression can’t be turned on or off when the logger is configured. Because of problems in trying to append to an existing compressed file, if the server encounters an existing log file at startup, it rotates that file and begins a new one rather than attempting to append to the previous file.
Compression is performed using the standard gzip algorithm, so compressed log files can be accessed using readily available tools. The summarize-access-log tool can also work directly on compressed log files rather than requiring them to be uncompressed first.
However, administrators who use compressed logging might also define a second, uncompressed logger for troubleshooting, with rotation and retention policies that limit disk usage while keeping recent logs available for diagnosis without requiring decompression.
Configure compression by setting the compression-mechanism property to have the value of gzip when creating a new logger.