1
1
---
2
2
date : 2025-01-10
3
- title : Why ClickHouse default logging setting is verbose?
4
- description : " Explain why ClickHouse developers chose to set a verbose log level by default"
3
+ title : Why is ClickHouse logging so verbose by default ?
4
+ description : " Learn why the ClickHouse developers chose to set a verbose logging level by default. "
5
5
tags : ['Settings']
6
6
keywords : ['Default Logging']
7
7
---
@@ -11,23 +11,23 @@ keywords: ['Default Logging']
11
11
12
12
## Verbose Logging
13
13
14
- One thing that often confuses new users is that ClickHouse generates a lot of log output, even under light load.
14
+ One thing that often confuses new users is that ClickHouse generates a lot of logging output, even under light load.
15
15
16
- This is because the default log level is for historical reasons ` trace ` (instead of ` warning ` that would be the default in other databases).
16
+ This is because the default logging level, due to historical reasons, is ` trace ` (instead of ` warning ` that would be the default in other databases).
17
17
18
- The ClickHouse developers argue that ` trace ` provides a lot of insight in case goes wrong.
18
+ The ClickHouse developers argue that ` trace ` provides a lot of insight in case something goes wrong.
19
19
20
- On the other hand, large volumes of logging means that system table ` system.text_log ` fills up quickly and needs to be merged in the background.
20
+ On the other hand, large volumes of logging mean that the system table ` system.text_log ` fills up quickly and needs to be merged in the background.
21
21
22
- If the database runs stable , users may re-configure the log level.
22
+ If the database runs stably , users may re-configure the log level, which we explain how to do below .
23
23
24
- ## Change log level
24
+ ## Change the log level
25
25
26
- The different log level available are documented [ here] ( https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings#logger )
26
+ The different log levels available are documented [ here] ( https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings#logger )
27
27
28
- Edit the ClickHouse server configuration file (` /etc/clickhouse-server/config.xml ` ) to modify the log level.
28
+ You'll need to edit the ClickHouse server configuration file (` /etc/clickhouse-server/config.xml ` ) to modify the log level.
29
29
30
- Default value is ` trace ` , change it to the desired level.
30
+ The default value is ` trace ` but you can change it to the desired level. See the comment below:
31
31
32
32
```
33
33
<clickhouse>
@@ -50,4 +50,4 @@ Default value is `trace`, change it to the desired level.
50
50
<level>trace</level>
51
51
... Rest of the configuration file
52
52
</clickhouse>
53
- ```
53
+ ```
0 commit comments