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

> このノードでプロセス内 ClickHouse Keeper が実行されている場合にのみ存在するシステムテーブルです。Keeper log store で追跡される、ディスク上の各 Raft changelog ファイルについて 1 行が含まれます。

# system.keeper_changelogs

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

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

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

このノードがプロセス内 ClickHouse Keeper を実行するように設定されていない場合、このテーブルは存在しません。このテーブルには、プロセス内 Keeper log store が追跡する各 Raft changelog ファイル (`changelog_<from>_<to>.bin[.zstd]`) ごとに 1 行が含まれ、現在追記中のアクティブなファイルも含まれます。

<div id="columns">
  ## カラム
</div>

* `from_log_index` ([UInt64](/ja/reference/data-types/int-uint)) — ファイル内の最初の Raft ログ索引 (この値を含む) 。
* `to_log_index` ([UInt64](/ja/reference/data-types/int-uint)) — ファイル名がカバーする最後の Raft ログ索引 (この値を含む) 。アクティブなファイルでは、これはローテーション先の目標値であり、`last_entry_index` より先になる場合があります。
* `last_entry_index` ([Nullable(UInt64)](/ja/reference/data-types/int-uint)) — このファイルに実際に追記された最大のログ索引。アクティブなファイルがまだエントリを受信していない場合、またはファイルが破損している場合は `NULL` です。
* `entries` ([UInt64](/ja/reference/data-types/int-uint)) — このファイルに追記されたエントリ数。`ifNull(last_entry_index - from_log_index + 1, 0)` の `ALIAS` です。
* `path` ([String](/ja/reference/data-types/string)) — ディスク上のファイルパス。
* `disk_name` ([String](/ja/reference/data-types/string)) — ファイルを保持しているディスクの名前。
* `size_bytes` ([UInt64](/ja/reference/data-types/int-uint)) — ディスク上のファイルサイズ。
* `modification_time` ([DateTime](/ja/reference/data-types/datetime)) — ファイルの最終更新時刻。
* `is_compressed` ([Bool](/ja/reference/data-types/boolean)) — ファイルのペイロードは zstd で圧縮されています。
* `active` ([Bool](/ja/reference/data-types/boolean)) — このファイルは現在追記対象です。
* `is_broken` ([Bool](/ja/reference/data-types/boolean)) — 起動時に末尾レコードの破損が検出されました。

例:

```sql theme={null}
SELECT from_log_index, to_log_index, entries, path, active FROM system.keeper_changelogs ORDER BY from_log_index;
```

```text theme={null}
┌─from_log_index─┬─to_log_index─┬─entries─┬─path───────────────────────────┬─active─┐
│              1 │         1000 │    1000 │ changelog_1_1000.bin.zstd      │ false  │
│           1001 │         2000 │     537 │ changelog_1001_2000.bin.zstd   │ true   │
└────────────────┴──────────────┴─────────┴────────────────────────────────┴────────┘
```
