{
  "id": "elasticsearch/rollup-job-not-matching-indices",
  "signature": "ElasticsearchException: Rollup job [my_rollup] cannot be started because the index pattern [logs-*] does not match any existing indices",
  "signature_zh": "ElasticsearchException: 汇总作业[my_rollup]无法启动，因为索引模式[logs-*]不匹配任何现有索引",
  "regex": "ElasticsearchException: Rollup job \\[.*\\] cannot be started because the index pattern \\[.*\\] does not match any existing indices",
  "domain": "elasticsearch",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The rollup job's index pattern does not match any indices in the cluster, preventing job initialization.",
  "root_cause_type": "generic",
  "root_cause_zh": "汇总作业的索引模式不匹配集群中的任何索引，阻止作业初始化。",
  "versions": [
    {
      "version": "Elasticsearch 7.13",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Elasticsearch 8.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Elasticsearch 8.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Creating an empty index matching the pattern (e.g., `PUT logs-2025`) without data",
      "why_fails": "The rollup job may start but will produce no results, and the empty index may cause other issues.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Modifying the rollup job to use a wildcard pattern like `*`",
      "why_fails": "This may match unintended indices, causing performance degradation or incorrect rollups.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Restarting the rollup job without checking index existence",
      "why_fails": "The same error will recur as the index pattern remains unmatched.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify existing indices with `GET _cat/indices/logs-*` and adjust the rollup job pattern to match: `PUT _rollup/job/my_rollup/_stop` then `PUT _rollup/job/my_rollup {\"index_pattern\": \"logs-2025-*\"}`",
      "success_rate": 0.9,
      "how": "Verify existing indices with `GET _cat/indices/logs-*` and adjust the rollup job pattern to match: `PUT _rollup/job/my_rollup/_stop` then `PUT _rollup/job/my_rollup {\"index_pattern\": \"logs-2025-*\"}`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Create sample data indices matching the pattern before starting the job: `POST logs-2025-01/_doc {\"timestamp\": \"2025-01-01\", \"value\": 10}`",
      "success_rate": 0.85,
      "how": "Create sample data indices matching the pattern before starting the job: `POST logs-2025-01/_doc {\"timestamp\": \"2025-01-01\", \"value\": 10}`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "使用`GET _cat/indices/logs-*`验证现有索引，并调整汇总作业模式以匹配：`PUT _rollup/job/my_rollup/_stop`然后`PUT _rollup/job/my_rollup {\"index_pattern\": \"logs-2025-*\"}`",
    "在启动作业前创建匹配模式的示例数据索引：`POST logs-2025-01/_doc {\"timestamp\": \"2025-01-01\", \"value\": 10}`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-getting-started.html",
  "official_doc_section": null,
  "error_code": "ROLLUP_NO_MATCHING_INDICES",
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2024-04-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}