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

> System table containing logging entries.

# system.text_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 logging entries. The logging level which goes to this table can be limited to the `text_log.level` server setting.

<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)) — Date of the entry.
* `event_time` ([DateTime](/reference/data-types/datetime)) — Time of the entry.
* `event_time_microseconds` ([DateTime64(6)](/reference/data-types/datetime64)) — Time of the entry with microseconds precision.
* `thread_name` ([LowCardinality(String)](/reference/data-types/lowcardinality)) — Name of the thread from which the logging was done.
* `thread_id` ([UInt64](/reference/data-types/int-uint)) — OS thread ID.
* `level` ([Enum8('Fatal' = 1, 'Critical' = 2, 'Error' = 3, 'Warning' = 4, 'Notice' = 5, 'Information' = 6, 'Debug' = 7, 'Trace' = 8, 'Test' = 9)](/reference/data-types/enum)) — 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](/reference/data-types/string)) — ID of the query.
* `logger_name` ([LowCardinality(String)](/reference/data-types/lowcardinality)) — Name of the logger (e.g., DDLWorker).
* `message` ([String](/reference/data-types/string)) — The message itself.
* `revision` ([UInt32](/reference/data-types/int-uint)) — ClickHouse revision.
* `source_file` ([LowCardinality(String)](/reference/data-types/lowcardinality)) — Source file from which the logging was done.
* `source_line` ([UInt64](/reference/data-types/int-uint)) — Source line from which the logging was done.
* `message_format_string` ([LowCardinality(String)](/reference/data-types/lowcardinality)) — A format string that was used to format the message.
* `value1` ([String](/reference/data-types/string)) — Argument 1 that was used to format the message.
* `value2` ([String](/reference/data-types/string)) — Argument 2 that was used to format the message.
* `value3` ([String](/reference/data-types/string)) — Argument 3 that was used to format the message.
* `value4` ([String](/reference/data-types/string)) — Argument 4 that was used to format the message.
* `value5` ([String](/reference/data-types/string)) — Argument 5 that was used to format the message.
* `value6` ([String](/reference/data-types/string)) — Argument 6 that was used to format the message.
* `value7` ([String](/reference/data-types/string)) — Argument 7 that was used to format the message.
* `value8` ([String](/reference/data-types/string)) — Argument 8 that was used to format the message.
* `value9` ([String](/reference/data-types/string)) — Argument 9 that was used to format the message.
* `value10` ([String](/reference/data-types/string)) — Argument 10 that was used to format the message.

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

```sql theme={null}
SELECT * FROM system.text_log LIMIT 1 \G
```

```text theme={null}
Row 1:
──────
hostname:                clickhouse.eu-central1.internal
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
query_id:
logger_name:             DNSCacheUpdater
message:                 Update period 15 seconds
revision:                54440
source_file:             /ClickHouse/src/Interpreters/DNSCacheUpdater.cpp; void DB::DNSCacheUpdater::start()
source_line:             45
message_format_string:   Update period {} seconds
value1:                  15
value2:                  
value3:                  
value4:                  
value5:                  
value6:                  
value7:                  
value8:                  
value9:                  
value10:                  
```
