You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**We do not recommend removing `query_log` and `query_thread_log` as queries' (they have very useful information for debugging), and logging can be easily turned off without a restart through user profiles:**
50
+
Hint: `z_log_disable.xml` is named with **z_** in the beginning, it means this config will be applied the last and will override all other config files with these sections (config are applied in alphabetical order).
51
+
52
+
**We do not recommend removing `query_log` as it has very useful information for debugging, and logging can be easily turned off without a restart through user profiles:**
Hint: `z_log_disable.xml` is named with **z_** in the beginning, it means this config will be applied the last and will override all other config files with these sections (config are applied in alphabetical order).
66
-
67
65
You can also configure these settings to reduce the amount of data in the `system.query_log` table:
68
66
69
67
```markup
@@ -77,6 +75,27 @@ log_query_settings | 1 | Log query settings into the qu
77
75
log_queries_probability | 1 | Log queries with the specified probabality.
78
76
```
79
77
78
+
The other system log tables that can be disabled in profiles are:
💡 For the [clickhouse-operator](https://github.com/Altinity/clickhouse-operator/blob/master/README.md), the above method of using only the `<engine>` tag without `<ttl>` or `<partition>` is recommended, because of possible configuration clashes.
134
153
135
154
After that you need to restart ClickHouse and *if using old clickhouse versions like 20 or less*, drop or rename the existing system.query_log table and then CH creates a new table with these settings. This is automatically done in newer versions 21+.
136
-
137
-
138
-
## You can disable logging on a session level or in user’s profile (for all or specific users)
139
-
140
-
But only for logs generated on session level (`query_log` / `query_thread_log`)
141
-
142
-
In this case a restart is not needed.
143
-
144
-
Let’s disable query logging for all users (profile = default, all other profiles inherit it).
0 commit comments