TIDB修改日志级别

日志级别

tidb 默认日志级别 为 info,可选项为 debug, info, warn, error, fatal,在 tidb-server,tikv-server,tiflash-server,pd-server 四个板块内都可以设置

查看集群名称

使用 tiup 命令 查看集群信息

复制代码
[root@DB2-001 tidb]# tiup cluster list
tiup is checking updates for component cluster ...
A new version of cluster is available:
   The latest version:         v1.14.1
   Local installed version:    v1.14.0
   Update current component:   tiup update cluster
   Update all components:      tiup update --all


Starting component `cluster`: /root/.tiup/components/cluster/v1.14.0/tiup-cluster list
Name       User  Version  Path                                            PrivateKey
----       ----  -------  ----                                            ----------
tidb-test  tidb  v6.5.2   /root/.tiup/storage/cluster/clusters/tidb-test  /root/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa

集群名字为 tidb-test

更改配置文件

修改配置文件命令

复制代码
tiup cluster edit-config tidb-test

注意 修改日志格式

复制代码
tidb_servers:
  - host: 10.0.1.1
    config:
      log.level: error

修改完,保存退出

出现提示 :请检查上面的变更亮点,您是否想应用这些变更?y/N:(默认为N)

按"Y+回车"就可以确认了。更改成功

相关推荐
orion5710 小时前
Missing Semester Class1:course overview and introduction of shell
linux
先吃饱再说14 小时前
存储的进化:从 MySQL 到浏览器缓存,数据到底住在哪?
数据库
Nturmoils14 小时前
字段太多看不全,ksql 的展开模式和输出控制怎么用
数据库·后端
SkyWalking中文站14 小时前
认识 Horizon UI · 6/17:Trace 探索器
运维·监控·自动化运维
用户1204872216116 小时前
Linux驱动编译与加载
linux·嵌入式
Databend17 小时前
Agent 轨迹分析与归因的数据工程实践
大数据·数据库·agent
这个DBA有点耶17 小时前
SQL改写进阶:标量子查询的“隐形代价”与消除实战
数据库·mysql·架构
程序员老赵18 小时前
服务器文件不想 SFTP 上传?Docker 跑个 File Browser,浏览器就能管理
服务器·docker·开源
火车叼位18 小时前
写给初级开发者:SSL、SSH、HTTPS 与证书体系全解析
运维
smallyoung18 小时前
数据库乐观锁深度解析:MySQL、PostgreSQL 实战 + Spring Boot 集成指南
数据库·mysql·postgresql