Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
8k stars 1.73k forks source link

use es8.1.3, pip install elasticsearch==8.1.3,error #3248

Closed Pa55w0rd closed 2 years ago

Pa55w0rd commented 2 years ago

[root@localhost elastalert]# python3 -m elastalert.elastalert --verbose --rule ../rule/example_change.yaml Traceback (most recent call last): File "/usr/lib64/python3.6/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib64/python3.6/runpy.py", line 109, in _get_module_details __import__(pkg_name) File "/data/elk/elastalert/elastalert/elastalert/__init__.py", line 6, in <module> from elasticsearch import RequestsHttpConnection ImportError: cannot import name 'RequestsHttpConnection'

hanzoi commented 2 years ago

I also encountered the same problem, I suspect that there is a compatibility problem with elasalert version 8.0+