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

> ログエントリを格納するシステムテーブル。

# system.text_log

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

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

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

ログエントリを含みます。このテーブルに出力されるログレベルは、サーバー設定 `text_log.level` で制限できます。

<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)) — エントリの時刻。
* `event_time_microseconds` ([DateTime64(6)](/ja/reference/data-types/datetime64)) — マイクロ秒精度のエントリ時刻。
* `thread_name` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — ログが記録されたスレッド名。
* `thread_id` ([UInt64](/ja/reference/data-types/int-uint)) — OS スレッド ID。
* `level` ([Enum8('Fatal' = 1, 'Critical' = 2, 'Error' = 3, 'Warning' = 4, 'Notice' = 5, 'Information' = 6, 'Debug' = 7, 'Trace' = 8, 'Test' = 9)](/ja/reference/data-types/enum)) — エントリのレベル。設定可能な値: 1 または 'Fatal'、2 または 'Critical'、3 または 'Error'、4 または 'Warning'、5 または 'Notice'、6 または 'Information'、7 または 'Debug'、8 または 'Trace'。
* `query_id` ([String](/ja/reference/data-types/string)) — クエリの ID。
* `logger_name` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — ロガー名 (例: DDLWorker) 。
* `message` ([String](/ja/reference/data-types/string)) — メッセージ本体。
* `revision` ([UInt32](/ja/reference/data-types/int-uint)) — ClickHouse のリビジョン。
* `source_file` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — ログが記録されたソースファイル。
* `source_line` ([UInt64](/ja/reference/data-types/int-uint)) — ログが記録されたソース行。
* `message_format_string` ([LowCardinality(String)](/ja/reference/data-types/lowcardinality)) — メッセージの整形に使用されたフォーマット文字列。
* `value1` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 1。
* `value2` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 2。
* `value3` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 3。
* `value4` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 4。
* `value5` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 5。
* `value6` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 6。
* `value7` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 7。
* `value8` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 8。
* `value9` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 9。
* `value10` ([String](/ja/reference/data-types/string)) — メッセージの整形に使用された引数 10。

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

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