mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
40 lines
1.5 KiB
Markdown
40 lines
1.5 KiB
Markdown
---
|
|
slug: /en/operations/system-tables/error_log
|
|
---
|
|
# error_log
|
|
|
|
Contains history of error values from table `system.errors`, periodically flushed to disk.
|
|
|
|
Columns:
|
|
- `hostname` ([LowCardinality(String)](../../sql-reference/data-types/string.md)) — Hostname of the server executing the query.
|
|
- `event_date` ([Date](../../sql-reference/data-types/date.md)) — Event date.
|
|
- `event_time` ([DateTime](../../sql-reference/data-types/datetime.md)) — Event time.
|
|
- `code` ([Int32](../../sql-reference/data-types/int-uint.md)) — Code number of the error.
|
|
- `error` ([LowCardinality(String)](../../sql-reference/data-types/string.md)) - Name of the error.
|
|
- `value` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The number of times this error happened.
|
|
- `remote` ([UInt8](../../sql-reference/data-types/int-uint.md)) — Remote exception (i.e. received during one of the distributed queries).
|
|
|
|
**Example**
|
|
|
|
``` sql
|
|
SELECT * FROM system.error_log LIMIT 1 FORMAT Vertical;
|
|
```
|
|
|
|
``` text
|
|
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
|
|
```
|
|
|
|
**See also**
|
|
|
|
- [error_log setting](../../operations/server-configuration-parameters/settings.md#error_log) — Enabling and disabling the setting.
|
|
- [system.errors](../../operations/system-tables/errors.md) — Contains error codes with the number of times they have been triggered.
|
|
- [Monitoring](../../operations/monitoring.md) — Base concepts of ClickHouse monitoring.
|