{
  "id": "elasticsearch/index-lifecycle-policy-rollover-failure",
  "signature": "ElasticsearchException: index lifecycle policy [my_policy] failed to rollover index [logs-2025.03.15] - condition [max_age: 30d] not met, actual age [25d]",
  "signature_zh": "Elasticsearch异常：索引生命周期策略 [my_policy] 未能滚动索引 [logs-2025.03.15] - 条件 [max_age: 30d] 未满足，实际年龄 [25d]",
  "regex": "ElasticsearchException: index lifecycle policy \\[.*?\\] failed to rollover index \\[.*?\\] - condition \\[.*?\\] not met",
  "domain": "elasticsearch",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "An ILM rollover condition (max_age, max_docs, or max_size) is not met because the index was manually created with an alias, causing the rollover to be skipped or misconfigured.",
  "root_cause_type": "generic",
  "root_cause_zh": "ILM 滚动条件（max_age、max_docs 或 max_size）未满足，因为索引是使用别名手动创建的，导致滚动被跳过或配置错误。",
  "versions": [
    {
      "version": "7.17.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.11.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.12.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Index creation date is immutable; modifying it via update doesn't affect ILM's internal tracking.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Loses automated lifecycle management, requiring manual intervention for each rollover and deletion.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the index is part of an alias with `is_write_index: true` and that the rollover alias matches the policy's `rollover_alias` setting. Use `PUT _ilm/policy/my_policy` to correct the alias name.",
      "success_rate": 0.85,
      "how": "Ensure the index is part of an alias with `is_write_index: true` and that the rollover alias matches the policy's `rollover_alias` setting. Use `PUT _ilm/policy/my_policy` to correct the alias name.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Force rollover manually by calling `POST /logs-2025.03.15/_rollover` with the required conditions, then check ILM status with `GET logs-2025.03.15/_ilm/explain`.",
      "success_rate": 0.8,
      "how": "Force rollover manually by calling `POST /logs-2025.03.15/_rollover` with the required conditions, then check ILM status with `GET logs-2025.03.15/_ilm/explain`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Delete the index and recreate it with proper alias configuration: `PUT /logs-2025.03.15-000001 { \"aliases\": { \"logs_write\": { \"is_write_index\": true } } }`.",
      "success_rate": 0.9,
      "how": "Delete the index and recreate it with proper alias configuration: `PUT /logs-2025.03.15-000001 { \"aliases\": { \"logs_write\": { \"is_write_index\": true } } }`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Ensure the index is part of an alias with `is_write_index: true` and that the rollover alias matches the policy's `rollover_alias` setting. Use `PUT _ilm/policy/my_policy` to correct the alias name.",
    "Force rollover manually by calling `POST /logs-2025.03.15/_rollover` with the required conditions, then check ILM status with `GET logs-2025.03.15/_ilm/explain`.",
    "Delete the index and recreate it with proper alias configuration: `PUT /logs-2025.03.15-000001 { \"aliases\": { \"logs_write\": { \"is_write_index\": true } } }`."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html",
  "official_doc_section": null,
  "error_code": "ES_ILM_ROLLOVER_FAIL",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.85,
  "resolvable": "partial",
  "first_seen": "2024-07-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}