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

> System table containing the history of error values from table `system.errors`, periodically flushed to disk.

# system.error_log

<Info>
  **Querying in ClickHouse Cloud**

  The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the `clusterAllReplicas` function. See [here](/reference/system-tables/overview#system-tables-in-clickhouse-cloud) for further details.
</Info>

<h2 id="description">
  Description
</h2>

Contains history of error values from table `system.errors`, periodically flushed to disk.

<h2 id="columns">
  Columns
</h2>

* `hostname` ([LowCardinality(String)](/reference/data-types/lowcardinality)) — Hostname of the server executing the query.
* `event_date` ([Date](/reference/data-types/date)) — Event date.
* `event_time` ([DateTime](/reference/data-types/datetime)) — Event time.
* `code` ([Int32](/reference/data-types/int-uint)) — Error code.
* `error` ([LowCardinality(String)](/reference/data-types/lowcardinality)) — Error name.
* `value` ([UInt64](/reference/data-types/int-uint)) — Number of errors happened in time interval.
* `remote` ([UInt8](/reference/data-types/int-uint)) — Remote exception (i.e. received during one of the distributed queries).
* `last_error_time` ([DateTime](/reference/data-types/datetime)) — The time when the last error happened.
* `last_error_message` ([String](/reference/data-types/string)) — Message for the last error.
* `last_error_query_id` ([String](/reference/data-types/string)) — Id of a query that caused the last error (if available).
* `last_error_trace` ([Array(UInt64)](/reference/data-types/array)) — A stack trace that represents a list of physical addresses where the called methods are stored.

<h2 id="example">
  Example
</h2>

```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]
```

<h2 id="see-also">
  See Also
</h2>

* [error\_log setting](/reference/settings/server-settings/settings#error_log) — Enabling and disabling the setting.
* [system.errors](/reference/system-tables/errors) — Contains error codes with the number of times they have been triggered.
* [Monitoring](/guides/oss/deployment-and-scaling/monitoring/monitoring) — Base concepts of ClickHouse monitoring.
