elasticsearch
config_error
ai_generated
true
Elasticsearch 异常:无法启动 Rollup 作业 [my_rollup],因为索引模式 [logs-*] 未匹配到任何现有索引
ElasticsearchException: Rollup job [my_rollup] cannot be started because the index pattern [logs-*] does not match any existing indexes
ID: elasticsearch/rollup-job-no-matching-indexes
85%修复率
88%置信度
1证据数
2024-08-12首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 7.10.0 | active | — | — | — |
| 7.17.0 | active | — | — | — |
| 8.0.0 | active | — | — | — |
根因分析
Rollup 作业的索引模式未匹配到任何当前索引,可能是因为索引尚未创建或模式不正确。
English
The rollup job's index pattern does not match any current indices, either because the indices have not been created yet or the pattern is incorrect.
官方文档
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/rollup-getting-started.html解决方案
-
Update the rollup job's index pattern to match existing indices: `PUT _rollup/job/my_rollup/_update { "pattern": "logs-2025*" }` then start the job. -
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).
无效尝试
常见但无效的做法:
-
95% 失败
The rollup job pattern remains unchanged; it will still not match the new indices.
-
98% 失败
The job will fail immediately because there are no indices to roll up.