error_log
在 ClickHouse Cloud 中查询
此系统表中的数据本地保存在 ClickHouse Cloud 的每个节点上。 因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas
函数。 有关更多详细信息,请参阅此处。
包含表 system.errors
中错误值的历史记录,定期刷新到磁盘。
列
hostname
(LowCardinality(String)) — 执行查询的服务器的主机名。event_date
(Date) — 事件日期。event_time
(DateTime) — 事件时间。code
(Int32) — 错误的代码编号。error
(LowCardinality(String)) - 错误名称。value
(UInt64) — 此错误发生的次数。remote
(UInt8) — 远程异常(即在分布式查询之一期间接收到)。
示例
SELECT * FROM system.error_log LIMIT 1 FORMAT Vertical;
Row 1:
──────
hostname: clickhouse.eu-central1.internal
event_date: 2024-06-18
event_time: 2024-06-18 07:32:39
code: 999
error: KEEPER_EXCEPTION
value: 2
remote: 0
另请参阅
- error_log 设置 — 启用和禁用设置。
- system.errors — 包含错误代码及其触发次数。
- 监控 — ClickHouse 监控的基本概念。