How to Modify TiDB Configuration File to Adjust Log Level

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 如何修改 tidb 配置文件 调整日志级别

| username: TiDBer_g3thxvDy

[TiDB Usage Environment] Production
[TiDB Version] 6.5.2
[Reproduction Path]
[Encountered Problem: Phenomenon and Impact] Using tiup cluster edit-config tidb-test to modify the configuration file and add log: error. The modification failed.
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]


Configuration file content

| username: Soysauce520 | Original post link

log.level: error

| username: 这里介绍不了我 | Original post link

log.level: err
TiDB Configuration File Description | PingCAP Documentation Center

| username: Daniel-W | Original post link

There are issues with both the location and method of your configuration.
Refer to the following two methods:
image

| username: 小龙虾爱大龙虾 | Original post link

tidb_servers:
  - host: 10.0.1.1
    config:
      log.level: error
| username: TiDBer_g3thxvDy | Original post link

Teacher, after modifying it according to this method, this error appears. What is the reason?

| username: TiDBer_g3thxvDy | Original post link

Teacher, after modifying according to this method, this error occurred. What is the reason?

| username: wangccsy | Original post link

Where is the configuration file for tiup playground?

| username: TiDBer_g3thxvDy | Original post link

Teacher, how do I check this?

| username: 小龙虾爱大龙虾 | Original post link

At this point, you can confirm by pressing “Y+Enter”.

| username: TiDBer_g3thxvDy | Original post link

Okay, thank you, teacher. The mechanical disk performance of this terminal is too poor. It just got stuck and automatically hit enter. I thought something went wrong.

| username: zhang_2023 | Original post link

log.level: error

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.