> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-3a82795f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> テーブル `system.errors` のエラー値の履歴を含むシステムテーブルで、定期的にディスクへフラッシュされます。

# system.error_log

<Info>
  **ClickHouse Cloud でのクエリ**

  このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに保持されています。したがって、すべてのデータを完全に把握するには、`clusterAllReplicas` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

定期的にディスクへフラッシュされる、`system.errors` テーブルのエラー値の履歴が格納されています。

<div id="columns">
  ## カラム
</div>

* `hostname` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — クエリを実行しているサーバーのホスト名。
* `event_date` ([Date](/ja/reference/data-types/date)) — イベントの日付。
* `event_time` ([DateTime](/ja/reference/data-types/datetime)) — イベントの時刻。
* `code` ([Int32](/ja/reference/data-types/int-uint)) — エラーコード。
* `error` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — エラー名。
* `value` ([UInt64](/ja/reference/data-types/int-uint)) — 一定時間内に発生したエラー数。
* `remote` ([UInt8](/ja/reference/data-types/int-uint)) — リモート例外 (つまり、分散クエリのいずれかの実行中に受信したもの) 。
* `last_error_time` ([DateTime](/ja/reference/data-types/datetime)) — 最後にエラーが発生した時刻。
* `last_error_message` ([String](/ja/reference/data-types/string)) — 最後のエラーメッセージ。
* `last_error_query_id` ([String](/ja/reference/data-types/string)) — 最後のエラーを引き起こしたクエリの ID (利用可能な場合) 。
* `last_error_trace` ([Array(UInt64)](/ja/reference/data-types/array)) — 呼び出されたメソッドが格納されている物理アドレスのリストを表すスタックトレース。

<div id="example">
  ## 例
</div>

```sql theme={null}
SELECT * FROM system.error_log LIMIT 1 FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
hostname:            clickhouse.testing.internal
event_date:          2025-11-11
event_time:          2025-11-11 11:35:28
code:                60
error:               UNKNOWN_TABLE
value:               1
remote:              0
last_error_time:     2025-11-11 11:35:28
last_error_message:  Unknown table expression identifier 'system.table_not_exist' in scope SELECT * FROM system.table_not_exist
last_error_query_id: 77ad9ece-3db7-4236-9b5a-f789bce4aa2e
last_error_trace:    [100506790044914,100506534488542,100506409937998,100506409936517,100506425182891,100506618154123,100506617994473,100506617990486,100506617988112,100506618341386,100506630272160,100506630266232,100506630276900,100506629795243,100506633519500,100506633495783,100506692143858,100506692248921,100506790779783,100506790781278,100506790390399,100506790380047,123814948752036,123814949330028]
```

<div id="see-also">
  ## 関連項目
</div>

* [error\_log 設定](/ja/reference/settings/server-settings/settings#error_log) — この設定の有効化と無効化について説明します。
* [system.errors](/ja/reference/system-tables/errors) — エラーコードと、それらがトリガーされた回数を含みます。
* [監視](/ja/guides/oss/deployment-and-scaling/monitoring/monitoring) — ClickHouse の監視の基本概念。
