Index Lifecycle Management(ILM)
Index Lifecycle Managementを身につけ、ロールオーバー、ホット・ウォーム・コールドアーキテクチャ、保持期間を自動化して、ログインデックスの速度とストレージを管理します。
「Index Lifecycle Management(ILM)」はCoddyKit上の無料System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Why Manage Index Lifecycle?
Time-series data like logs grows endlessly. Index Lifecycle Management (ILM) automates moving, shrinking, and deleting indices so old data does not crush your cluster.
Rollover
Rollover creates a new index when the current one hits a size, age, or document count threshold. Writes always go to a single alias.
rollover:
max_size: 50gb
max_age: 1d
max_docs: 100000000Write Aliases
Apps write to an alias such as logs-write. ILM swaps which physical index the alias points to on rollover, invisible to the writer.
POST logs-write/_doc
{ "message": "..." }The Phases
ILM defines lifecycle phases a data ages through.
- Hot: actively written and queried
- Warm: read-only, queried less
- Cold: rarely queried, cheap storage
- Delete: removed
Hot Phase
The hot phase lives on the fastest nodes with the most resources, handling all writes and recent queries.
phases:
hot:
actions:
rollover: { max_age: 1d }Warm Phase
In warm, indices become read-only and may move to cheaper nodes. You can shrink shards and force-merge segments to save space.
warm:
min_age: 7d
actions:
forcemerge: { max_num_segments: 1 }
shrink: { number_of_shards: 1 }Cold and Frozen
Cold data moves to the cheapest disks; frozen can be searched directly from object storage. Both trade query speed for cost.
cold:
min_age: 30d
actions:
allocate: { require: { data: cold } }Delete Phase
The delete phase enforces retention by removing indices past a chosen age, the simplest way to cap storage growth.
delete:
min_age: 90d
actions:
delete: {}Attaching a Policy
An index template binds new indices to an ILM policy and the write alias automatically.
PUT _index_template/logs
{ "template": { "settings": {
"index.lifecycle.name": "logs-policy" } } }Node Roles
Hot-warm-cold relies on node attributes so allocation actions can route shards to the right hardware tier.
node.attr.data: hot # on fast nodes
node.attr.data: cold # on cheap nodesPutting It Together
A typical logging policy: roll over daily in hot, move to warm and force-merge after a week, go cold after a month, and delete after ninety days.
Quick Check
Pick the phase that enforces retention.
Recap
You learned how ILM automates index management: rollover starts fresh indices behind a write alias, and the hot-warm-cold-delete phases move data to cheaper tiers as it ages and finally remove it. Index templates bind policies automatically, keeping clusters fast and storage bounded.
よくある質問
「Index Lifecycle Management(ILM)」レッスンは無料ですか?
はい。「Index Lifecycle Management(ILM)」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースには全4レッスンが含まれています。
「Index Lifecycle Management(ILM)」で何を学びますか?
Index Lifecycle Managementを身につけ、ロールオーバー、ホット・ウォーム・コールドアーキテクチャ、保持期間を自動化して、ログインデックスの速度とストレージを管理します。 ブラウザで直接実行するハンズオンコードでSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)を演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)を始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)は初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。
「Index Lifecycle Management(ILM)」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンでコードを書いて実行できますか?
はい。すべてのSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- Elasticsearchクエリ言語(DSL)
- Logstashのフィルターとパイプライン
- Kibana DiscoverとLens
- Index Lifecycle Management(ILM)