v.21.12New Features

Add LZ4 Log Compression Option

Add option to compress logs before writing them to a file using LZ4. Closes #23860. #29219 (Nikolay Degterinsky).
Added an option to compress ClickHouse logs before writing them to a file using the LZ4 compression algorithm.

Why it matters

This feature reduces the disk space consumed by log files by compressing logs on-the-fly, improving storage efficiency and potentially enhancing log management performance.

How to use it

Enable the log compression feature by configuring ClickHouse to compress logs with LZ4 in its server settings. This typically involves setting the appropriate logging configuration option to activate compression before logs are written to files.