elasticsearch config_error ai_generated true

RollupJobConfigurationException: Rollup job configuration validation failed

ID: elasticsearch/rollup-job-configuration-error

Also available as: JSON · Markdown · 中文
82%Fix Rate
83%Confidence
1Evidence
2024-06-05First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
elasticsearch 8.12 active — — —
elasticsearch 8.13 active — — —
elasticsearch 7.17 active — — —
opensearch 2.11 active — — —

Root Cause

The rollup job configuration has invalid field mappings, missing required fields, or incompatible date histograms.

generic

中文

汇总作业配置包含无效字段映射、缺少必需字段或不兼容的日期直方图。

Official Documentation

https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-job-config.html

Workarounds

  1. 90% success Verify that all fields in the rollup config exist in the source index with correct types. Example: GET my_source_index/_mapping/field/date_field
    Verify that all fields in the rollup config exist in the source index with correct types. Example: GET my_source_index/_mapping/field/date_field
  2. 80% success Use the rollup capability API to check supported fields: GET _rollup/job/my_rollup_job/_capabilities
    Use the rollup capability API to check supported fields: GET _rollup/job/my_rollup_job/_capabilities
  3. 85% success Recreate the rollup job with corrected config: PUT _rollup/job/my_rollup_job { "rollup": { "index_pattern": "source-*", "rollup_index": "rollup-*", "cron": "*/5 * * * * ?", "page_size": 1000, "groups": { "date_histogram": { "field": "timestamp", "fixed_interval": "1h" } }, "metrics": [ { "field": "value", "metrics": ["avg", "sum"] } ] } }
    Recreate the rollup job with corrected config: PUT _rollup/job/my_rollup_job { "rollup": { "index_pattern": "source-*", "rollup_index": "rollup-*", "cron": "*/5 * * * * ?", "page_size": 1000, "groups": { "date_histogram": { "field": "timestamp", "fixed_interval": "1h" } }, "metrics": [ { "field": "value", "metrics": ["avg", "sum"] } ] } }

中文步骤

  1. 验证汇总配置中的所有字段在源索引中存在且类型正确。
  2. 使用汇总功能API检查支持的字段。
  3. 使用修正后的配置重新创建汇总作业。

Dead Ends

Common approaches that don't work:

  1. 90% fail

    The configuration is still invalid; recreation does not fix the underlying validation issue.

  2. 80% fail

    This affects indexing, not rollup job validation; rollup checks field types at config time.

  3. 95% fail

    Validation failure is not a timeout issue; timeout increase does not resolve invalid config.