240 发简信
IP属地:甘肃
  • 出现了什么错误??
    这个错误有没有见过 楼主
    Traceback (most recent call last):
    File "/usr/bin/elastalert-test-rule", line 11, in <module>
    load_entry_point('elastalert==0.1.39', 'console_scripts', 'elastalert-test-rule')()
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 561, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
    return ep.load()
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
    File "/usr/lib/python2.7/site-packages/elastalert-0.1.39-py2.7.egg/elastalert/test_rule.py", line 20, in <module>
    import elastalert.config
    File "/usr/lib/python2.7/site-packages/elastalert-0.1.39-py2.7.egg/elastalert/config.py", line 31, in <module>
    rule_schema = jsonschema.Draft4Validator(yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml')), Loader=yaml.FullLoader))
    AttributeError: 'module' object has no attribute 'FullLoader'

    elastalert centos7 安装错误问题

    在centos 7.4 下安装elastalert时候,老出现报错。查来查去原来是setuptools的最新版版本不兼容导致的。安装指定版本即可解决。

  • File "/usr/bin/elastalert-test-rule", line 11, in <module>
    load_entry_point('elastalert==0.1.39', 'console_scripts', 'elastalert-test-rule')()
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 570, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2751, in load_entry_point
    return ep.load()
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2405, in load
    return self.resolve()
    File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2411, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
    File "/usr/lib/python2.7/site-packages/elastalert-0.1.39-py2.7.egg/elastalert/test_rule.py", line 20, in <module>
    import elastalert.config
    File "/usr/lib/python2.7/site-packages/elastalert-0.1.39-py2.7.egg/elastalert/config.py", line 31, in <module>
    rule_schema = jsonschema.Draft4Validator(yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml')), Loader=yaml.FullLoader))
    AttributeError: 'module' object has no attribute 'FullLoader'

    我在执行elastalert-test-rule 检查规则对时候出现了这个问题 ELK所有版本号都为6.3.0 楼主看到回复一下

    Elastalert安装及使用

    简介 Elastalert是用python2写的一个报警框架(目前支持python2.6和2.7,不支持3.x),github地址为 https://github.com/Y...

  • 你好 你安装的elk的版本号是多少的

    Elastalert安装及使用

    简介 Elastalert是用python2写的一个报警框架(目前支持python2.6和2.7,不支持3.x),github地址为 https://github.com/Y...