The hot-warm-cold architecture in Elasticsearch organizes data storage by age and usage. New data is stored in the hot tier for fast indexing and searching. After a set time (e.g., 7 days), data moves to the warm tier where it becomes read-only and stored on slower, cheaper nodes. Later, after more time (e.g., 30 days), data moves to the cold tier for long-term storage at minimal cost. Finally, data can be archived or deleted after it is no longer needed. This flow is controlled by index lifecycle management policies that automate moving data through these phases based on age. Variables like index age, data location, and index state change step-by-step as data progresses through the lifecycle.