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

相关推荐
不之道1 分钟前
通过 wsl 安装 docker
运维·docker·容器
和计算机搏斗的每一天16 分钟前
ip命令详解
服务器·网络·tcp/ip
あ-18 分钟前
CentOS7 OpenSSL升级1.1.1w
linux
{⌐■_■}19 分钟前
【redis】redis常见数据结构及其底层,redis单线程读写效率高于多线程的理解,
数据结构·数据库·redis
tianyuanwo20 分钟前
深入解读tcpdump:原理、数据结构与操作手册
linux·运维·服务器·tcpdump
xjdksxkmd40 分钟前
5.11作业
运维·服务器·网络
南风与鱼1 小时前
MySQL表的操作
数据库·mysql·表操作
banzhenfei2 小时前
xp_cmdshell bcp 导出文件
java·数据库·sql
CodeJourney.2 小时前
ChemBlender:科研绘图创新解决方案
数据库·人工智能·信息可视化·excel
电鱼智能的电小鱼2 小时前
产线视觉检测设备技术方案:基于EFISH-SCB-RK3588/SAIL-RK3588的国产化替代赛扬N100/N150全场景技术解析
linux·人工智能·嵌入式硬件·计算机视觉·视觉检测·实时音视频