After install ElastAlert, not runing

im install elastalert plugin to kibana, and downloaded clone github ElastAlert, and config basic file Config.Yaml but not running this error:

root@l-elk1:~# python elastalert/elastalert/elastalert.py
Traceback (most recent call last):
  File "elastalert/elastalert/elastalert.py", line 19, in <module>
    import kibana
  File "/home/ituser/elastalert/elastalert/kibana.py", line 5, in <module>
    from util import EAException
  File "/home/ituser/elastalert/elastalert/util.py", line 8, in <module>
    from auth import Auth
  File "/home/ituser/elastalert/elastalert/auth.py", line 4, in <module>
    from aws_requests_auth.aws_auth import AWSRequestsAuth
ImportError: No module named aws_requests_auth.aws_auth

@omid sounds like elastalert isn't installed properly, it's missing some of its dependencies. Did you follow the docs for Running ElastAlert for the first time?

@spalger very very thanks to answer me
im running command

pip install -r requirements.txt

but after run elastalert.py this error :

root@l-elk1:~/elastalert# python elastalert/elastalert.py
Traceback (most recent call last):
  File "elastalert/elastalert.py", line 19, in <module>
    import kibana
  File "/home/ituser/elastalert/elastalert/kibana.py", line 5, in <module>
    from util import EAException
  File "/home/ituser/elastalert/elastalert/util.py", line 8, in <module>
    from auth import Auth
  File "/home/ituser/elastalert/elastalert/auth.py", line 3, in <module>
    import boto3
  File "/usr/local/lib/python2.7/dist-packages/boto3/__init__.py", line 16, in <module>
    from boto3.session import Session
  File "/usr/local/lib/python2.7/dist-packages/boto3/session.py", line 17, in <module>
    import botocore.session
  File "/usr/local/lib/python2.7/dist-packages/botocore/session.py", line 25, in <module>
    import botocore.configloader
  File "/usr/local/lib/python2.7/dist-packages/botocore/configloader.py", line 19, in <module>
    from botocore.compat import six
  File "/usr/local/lib/python2.7/dist-packages/botocore/compat.py", line 25, in <module>
    from botocore.exceptions import MD5UnavailableError
  File "/usr/local/lib/python2.7/dist-packages/botocore/exceptions.py", line 15, in <module>
    from botocore.vendored.requests.exceptions import ConnectionError
  File "/usr/local/lib/python2.7/dist-packages/botocore/vendored/requests/__init__.py", line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File "/usr/local/lib/python2.7/dist-packages/botocore/vendored/requests/packages/urllib3/contrib/pyopenssl.py", line 53, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

please help me to solved problem.

Sorry that you're having trouble with ElastAlert @omid, but I don't really know anything about that project. I think you'll be better off reaching out to that project for help getting it installed and setup.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.