Skip to content

[ML] Datafeed fails on missing indices, even with allow_no_indices set to true #62404

@blaklaybul

Description

@blaklaybul

When starting a datafeed that points to multiple index patterns - i.e.:

"indices": [
      "metricbeat-*",
      "metrics-*"
    ]

but one of the index patterns matches no indices (in this case, metrics-*), and the index pattern does not exist in kibana, I'm getting an error:

server    log   [10:39:47.697] [error][data][elasticsearch] [status_exception]: No node found to start datafeed [datafeed-kibana-metrics-ui-default-default-hosts_network_out], allocation explanation [cannot start datafeed [datafeed-kibana-metrics-ui-default-default-hosts_network_out] because index [metrics-*] does not exist, is closed, or is still initializing.]

However, we have:
"indices_options": {
"allow_no_indices": true
}

set on the datafeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions