v.23.7New Feature

Added Date and Time Format Specifiers for Log File Names

Added the possibility to use date and time format specifiers in log and error log file names, either in config files (log and errorlog tags) or command line arguments (--log-file and --errorlog-file). #51945 (Victor Krasnov).
Added support for date and time format specifiers in ClickHouse log and error log file names, configurable via both configuration files and command line arguments.

Why it matters

This feature allows users to include dynamic timestamps in their log file names, enabling easier log management, rotation, and archival by automatically differentiating log files based on date and time.

How to use it

Users can include date and time format specifiers in the log and errorlog tags within ClickHouse configuration files or directly in command line arguments --log-file and --errorlog-file. The specifiers follow standard date/time formatting conventions to generate timestamped log file names.