我从 slack 工具安装了 elastalertgit clone https://github.com/Yelp/elastalert.git
并与它集成,但是当我尝试使用命令运行 elastalertpython -m elastalert.elastalert --verbose --rule example_frequency.yaml
时,出现此错误:
Traceback (most recent call last):
File "runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/elastalert-0.2.1-py2.7.egg/elastalert/elastalert.py", line 29, in <module>
from . import kibana
File "/usr/local/lib/python2.7/dist-packages/elastalert-0.2.1-py2.7.egg/elastalert/kibana.py", line 4, in <module>
import urllib.error
ImportError: No module named error
我希望在松弛工具中获得警报的输出