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+回车"就可以确认了。更改成功

相关推荐
勤奋的凯尔森同学3 分钟前
webmin配置终端显示样式,模仿UbuntuDesktop终端
linux·运维·服务器·ubuntu·webmin
月光水岸New28 分钟前
Ubuntu 中建的mysql数据库使用Navicat for MySQL连接不上
数据库·mysql·ubuntu
狄加山67529 分钟前
数据库基础1
数据库
我爱松子鱼32 分钟前
mysql之规则优化器RBO
数据库·mysql
丁卯4041 小时前
Go语言中使用viper绑定结构体和yaml文件信息时,标签的使用
服务器·后端·golang
chengooooooo1 小时前
苍穹外卖day8 地址上传 用户下单 订单支付
java·服务器·数据库
Rverdoser2 小时前
【SQL】多表查询案例
数据库·sql
Galeoto2 小时前
how to export a table in sqlite, and import into another
数据库·sqlite
人间打气筒(Ada)2 小时前
MySQL主从架构
服务器·数据库·mysql
leegong231112 小时前
学习PostgreSQL专家认证
数据库·学习·postgresql