2022-08-28 13:53:52 +00:00
|
|
|
|
---
|
2022-08-28 13:58:27 +00:00
|
|
|
|
slug: /en/operations/system-tables/text_log
|
2022-08-28 13:53:52 +00:00
|
|
|
|
---
|
2022-06-02 10:55:18 +00:00
|
|
|
|
# text_log
|
2020-06-18 08:24:31 +00:00
|
|
|
|
|
2020-10-26 10:09:41 +00:00
|
|
|
|
Contains logging entries. The logging level which goes to this table can be limited to the `text_log.level` server setting.
|
2020-06-18 08:24:31 +00:00
|
|
|
|
|
|
|
|
|
Columns:
|
|
|
|
|
|
2023-11-27 15:52:25 +00:00
|
|
|
|
- `hostname` ([LowCardinality(String)](../../sql-reference/data-types/string.md)) — Hostname of the server executing the query.
|
2023-04-19 15:55:29 +00:00
|
|
|
|
- `event_date` (Date) — Date of the entry.
|
|
|
|
|
- `event_time` (DateTime) — Time of the entry.
|
2024-01-10 20:11:46 +00:00
|
|
|
|
- `event_time_microseconds` (DateTime64) — Time of the entry with microseconds precision.
|
2023-04-19 15:55:29 +00:00
|
|
|
|
- `microseconds` (UInt32) — Microseconds of the entry.
|
|
|
|
|
- `thread_name` (String) — Name of the thread from which the logging was done.
|
|
|
|
|
- `thread_id` (UInt64) — OS thread ID.
|
|
|
|
|
- `level` (`Enum8`) — Entry level. Possible values:
|
|
|
|
|
- `1` or `'Fatal'`.
|
|
|
|
|
- `2` or `'Critical'`.
|
|
|
|
|
- `3` or `'Error'`.
|
|
|
|
|
- `4` or `'Warning'`.
|
|
|
|
|
- `5` or `'Notice'`.
|
|
|
|
|
- `6` or `'Information'`.
|
|
|
|
|
- `7` or `'Debug'`.
|
|
|
|
|
- `8` or `'Trace'`.
|
|
|
|
|
- `query_id` (String) — ID of the query.
|
|
|
|
|
- `logger_name` (LowCardinality(String)) — Name of the logger (i.e. `DDLWorker`).
|
|
|
|
|
- `message` (String) — The message itself.
|
|
|
|
|
- `revision` (UInt32) — ClickHouse revision.
|
|
|
|
|
- `source_file` (LowCardinality(String)) — Source file from which the logging was done.
|
|
|
|
|
- `source_line` (UInt64) — Source line from which the logging was done.
|
|
|
|
|
- `message_format_string` (LowCardinality(String)) — A format string that was used to format the message.
|
2024-02-05 22:44:55 +00:00
|
|
|
|
- `value1` (String) - Argument 1 that was used to format the message.
|
|
|
|
|
- `value2` (String) - Argument 2 that was used to format the message.
|
|
|
|
|
- `value3` (String) - Argument 3 that was used to format the message.
|
|
|
|
|
- `value4` (String) - Argument 4 that was used to format the message.
|
|
|
|
|
- `value5` (String) - Argument 5 that was used to format the message.
|
|
|
|
|
- `value6` (String) - Argument 6 that was used to format the message.
|
|
|
|
|
- `value7` (String) - Argument 7 that was used to format the message.
|
|
|
|
|
- `value8` (String) - Argument 8 that was used to format the message.
|
|
|
|
|
- `value9` (String) - Argument 9 that was used to format the message.
|
|
|
|
|
- `value10` (String) - Argument 10 that was used to format the message.
|
2020-08-06 08:50:29 +00:00
|
|
|
|
|
2020-09-11 17:34:27 +00:00
|
|
|
|
**Example**
|
|
|
|
|
|
|
|
|
|
``` sql
|
|
|
|
|
SELECT * FROM system.text_log LIMIT 1 \G
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
``` text
|
|
|
|
|
Row 1:
|
|
|
|
|
──────
|
2023-11-15 02:22:36 +00:00
|
|
|
|
hostname: clickhouse.eu-central1.internal
|
2020-09-11 17:34:27 +00:00
|
|
|
|
event_date: 2020-09-10
|
|
|
|
|
event_time: 2020-09-10 11:23:07
|
|
|
|
|
event_time_microseconds: 2020-09-10 11:23:07.871397
|
|
|
|
|
microseconds: 871397
|
|
|
|
|
thread_name: clickhouse-serv
|
|
|
|
|
thread_id: 564917
|
|
|
|
|
level: Information
|
2021-07-29 15:27:50 +00:00
|
|
|
|
query_id:
|
2020-09-11 17:34:27 +00:00
|
|
|
|
logger_name: DNSCacheUpdater
|
|
|
|
|
message: Update period 15 seconds
|
|
|
|
|
revision: 54440
|
|
|
|
|
source_file: /ClickHouse/src/Interpreters/DNSCacheUpdater.cpp; void DB::DNSCacheUpdater::start()
|
|
|
|
|
source_line: 45
|
2023-02-23 14:57:11 +00:00
|
|
|
|
message_format_string: Update period {} seconds
|
2024-02-05 22:44:55 +00:00
|
|
|
|
value1: 15
|
|
|
|
|
value2:
|
|
|
|
|
value3:
|
|
|
|
|
value4:
|
|
|
|
|
value5:
|
|
|
|
|
value6:
|
|
|
|
|
value7:
|
|
|
|
|
value8:
|
|
|
|
|
value9:
|
|
|
|
|
value10:
|
2020-09-11 17:34:27 +00:00
|
|
|
|
```
|