跳到主要内容
跳到主要内容

system.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

另请参阅