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

相关推荐
桑榆4163 小时前
双系统(Windows + Ubuntu)安装流程
linux·windows·ubuntu
jerryinwuhan7 小时前
《系统部署与运维》开篇 课程介绍
运维
小白勇闯网安圈7 小时前
Django 响应对象、文件上传与类视图
数据库·django·sqlite
努力的小雨8 小时前
同一份 SQL 跑多套环境:Ksql 变量怎么用才安全
数据库
科技绘图9 小时前
快鲸GEO vs 传统AI搜索优化:全链路自动化与高效内容生产在转化闭环上的对比
数据库·人工智能·自动化
ltl9 小时前
数据库作为 LLM 记忆体:语义缓存、RAG 与一致性
数据库
ltl9 小时前
WAL 与崩溃恢复:ARIES 协议怎么跑通
数据库
ltl9 小时前
实时 OS 巡礼:VxWorks、QNX、Zephyr 与 PREEMPT_RT
linux
ltl9 小时前
TEE 数据库:EnclaveDB、Oblivious 原语与机密 SQL
数据库
我是谁??9 小时前
Ubuntu22.04更换清华源
linux·运维·服务器