Merge pull request #46276 from ClickHouse/document-log-compression

docs for logger stream_compression
This commit is contained in:
Dan Roscigno 2023-02-12 21:55:33 -05:00 committed by GitHub
commit 5dd6f25d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -606,6 +606,7 @@ Keys:
- `size` Size of the file. Applies to `log` and `errorlog`. Once the file reaches `size`, ClickHouse archives and renames it, and creates a new log file in its place. - `size` Size of the file. Applies to `log` and `errorlog`. Once the file reaches `size`, ClickHouse archives and renames it, and creates a new log file in its place.
- `count` The number of archived log files that ClickHouse stores. - `count` The number of archived log files that ClickHouse stores.
- `console` Send `log` and `errorlog` to the console instead of file. To enable, set to `1` or `true`. - `console` Send `log` and `errorlog` to the console instead of file. To enable, set to `1` or `true`.
- `stream_compress` Compress `log` and `errorlog` with `lz4` stream compression. To enable, set to `1` or `true`.
**Example** **Example**
@ -616,6 +617,7 @@ Keys:
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog> <errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
<size>1000M</size> <size>1000M</size>
<count>10</count> <count>10</count>
<stream_compress>true</stream_compress>
</logger> </logger>
``` ```

View File

@ -1,5 +1,5 @@
<yandex> <clickhouse>
<logger> <logger>
<stream_compress>true</stream_compress> <stream_compress>true</stream_compress>
</logger> </logger>
</yandex> </clickhouse>