# Elasticsearch 异常：无法启动 Rollup 作业 [my_rollup]，因为索引模式 [logs-*] 未匹配到任何现有索引

- **ID:** `elasticsearch/rollup-job-no-matching-indexes`
- **领域:** elasticsearch
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

Rollup 作业的索引模式未匹配到任何当前索引，可能是因为索引尚未创建或模式不正确。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 7.10.0 | active | — | — |
| 7.17.0 | active | — | — |
| 8.0.0 | active | — | — |

## 解决方案

1. ```
   Update the rollup job's index pattern to match existing indices: `PUT _rollup/job/my_rollup/_update { "pattern": "logs-2025*" }` then start the job.
   ```
2. ```
   Create a dummy index matching the pattern to allow job start: `PUT logs-dummy` (then delete it after job starts if needed, but ensure real data exists).
   ```

## 无效尝试

- **** — The rollup job pattern remains unchanged; it will still not match the new indices. (95% 失败率)
- **** — The job will fail immediately because there are no indices to roll up. (98% 失败率)
