Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: query-log-max-len 参数疑问
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
v7.6.0
[Reproduction Path] What operations were performed to encounter the issue
[Encountered Issue: Issue Phenomenon and Impact]
The official documentation describes the maximum length parameter for TiDB slow logs as follows, default 4096
query-log-max-len
The maximum length of SQL output.
Default value: 4096
When the statement length exceeds query-log-max-len, it will be truncated.
Under the default configuration, why does the TiDB slow log contain the following information? The following information is part of the slow log display.
len:5493 indicates that the length of this slow SQL is 5493 bytes? If so, why is it greater than the default 4096 bytes?
, 196"(len:5493);
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]