{
  "id": "elasticsearch/alias-points-to-missing-index",
  "signature": "InvalidAliasNameException: alias [logs_current] points to missing index [logs-2025.03]",
  "signature_zh": "无效别名异常：别名[logs_current]指向缺失的索引[logs-2025.03]",
  "regex": "InvalidAliasNameException: alias \\[.*\\] points to missing index \\[.*\\]",
  "domain": "elasticsearch",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "An alias is configured to reference an index that has been deleted or does not exist, causing operations on the alias to fail.",
  "root_cause_type": "generic",
  "root_cause_zh": "别名被配置为引用一个已被删除或不存在的索引，导致对别名的操作失败。",
  "versions": [
    {
      "version": "7.17.12",
      "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.13.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the mapping does not match the expected schema, the alias may work but queries fail; also, data from the original index is lost",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The alias still references the missing index; it must be updated to point to an existing index",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Update the alias to point to an existing index: POST _aliases { \"actions\": [ { \"remove\": { \"index\": \"logs-2025.03\", \"alias\": \"logs_current\" } }, { \"add\": { \"index\": \"logs-2025.04\", \"alias\": \"logs_current\" } } ] }",
      "success_rate": 0.95,
      "how": "Update the alias to point to an existing index: POST _aliases { \"actions\": [ { \"remove\": { \"index\": \"logs-2025.03\", \"alias\": \"logs_current\" } }, { \"add\": { \"index\": \"logs-2025.04\", \"alias\": \"logs_current\" } } ] }",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the index was accidentally deleted, restore it from a snapshot: POST _snapshot/my_repo/snapshot_2025/_restore { \"indices\": \"logs-2025.03\", \"rename_pattern\": \"logs-2025.03\", \"rename_replacement\": \"logs-2025.03\" }",
      "success_rate": 0.85,
      "how": "If the index was accidentally deleted, restore it from a snapshot: POST _snapshot/my_repo/snapshot_2025/_restore { \"indices\": \"logs-2025.03\", \"rename_pattern\": \"logs-2025.03\", \"rename_replacement\": \"logs-2025.03\" }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "更新别名指向现有索引：POST _aliases { \"actions\": [ { \"remove\": { \"index\": \"logs-2025.03\", \"alias\": \"logs_current\" } }, { \"add\": { \"index\": \"logs-2025.04\", \"alias\": \"logs_current\" } } ] }",
    "如果索引被意外删除，从快照恢复：POST _snapshot/my_repo/snapshot_2025/_restore { \"indices\": \"logs-2025.03\", \"rename_pattern\": \"logs-2025.03\", \"rename_replacement\": \"logs-2025.03\" }"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-add-alias.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.93,
  "resolvable": "true",
  "first_seen": "2024-02-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}