jertel / elastalert2

ElastAlert 2 is a continuation of the original yelp/elastalert project. Pull requests are appreciated!
https://elastalert2.readthedocs.org
Apache License 2.0
895 stars 282 forks source link

kibana-discover-version 8.8 not found in enum with elastalert2 version 2.12 #1210

Closed alexAtQuanos closed 1 year ago

alexAtQuanos commented 1 year ago

Hello,

Im using the kubernetes deployment

helm upgrade --install --version="2.12.0" elastalert2 elastalert2/elastalert2 --namespace $KUBE_NAMESPACE

I tried to use kibana-discover-version 8.8 with a teams alert. I get this Error:

ERROR:elastalert:Could not load rule /opt/elastalert/rules/alerting-mail.yaml: Invalid Rule file: /opt/elastalert/rules/alerting-mail.yaml '8.8' is not one of ['8.5', '8.4', '8.3', '8.2', '8.1', '8.0', '7.17', '7.16', '7.15', '7.14', '7.13', '7.12', '7.11', '7.10', '7.9', '7.8', '7.7', '7.6', '7.5', '7.4', '7.3', '7.2', '7.1', '7.0']

Failed validating 'enum' in schema['properties']['kibana_discover_version']: {'enum': ['8.5', '8.4', '8.3', '8.2', '8.1', '8.0', '7.17', '7.16', '7.15', '7.14', '7.13', '7.12', '7.11', '7.10', '7.9', '7.8', '7.7', '7.6', '7.5', '7.4', '7.3', '7.2', '7.1', '7.0'], 'type': 'string'}

On instance['kibana_discover_version']: '8.8'

the configured rule looks something like this:

name: alerting type: any index: alerting-environment filter: