【 TiDB 使用环境】生产环境
【 TiDB 版本】4.0.8
【遇到的问题:问题现象及影响】
INFORMATION_SCHEMA.CLUSTER_SLOW_QUERY会 解析哪些日志?
除了解析 tidb_slow_query.log ,会不会解析tidb_slow_query-2023-01-07T01-21-27.674.log类文件?
配置如下:
TiDB root@ip:INFORMATION_SCHEMA> show variables like 'tidb_slow%'
+-------------------------+-------------------------+
| Variable_name | Value |
+-------------------------+-------------------------+
| tidb_slow_log_masking | 0 |
| tidb_slow_log_threshold | 300 |
| tidb_slow_query_file | log/tidb_slow_query.log |
+-------------------------+-------------------------+
3 rows in set
Time: 0.022s
TiDB root@ip:INFORMATION_SCHEMA>
tidb_slow_query-2023-01-07T01-21-27.674.log
tidb_slow_query-2023-01-14T01-39-39.632.log
tidb_slow_query-2023-01-19T02-45-17.557.log
tidb_slow_query-2023-01-29T01-04-57.913.log
tidb_slow_query-2023-02-06T01-03-31.728.log
tidb_slow_query.log