Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 485, in
wrap_socket
cnx.do_handshake()
File "/usr/local/lib/python3.8/dist-packages/OpenSSL/SSL.py", line 1828, in
do_handshake
self._raise_ssl_error(self._ssl, result)
File "/usr/local/lib/python3.8/dist-packages/OpenSSL/SSL.py", line 1566, in
_raise_ssl_error
_raise_current_error()
File "/usr/local/lib/python3.8/dist-packages/OpenSSL/_util.py", line 57, in
exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_record', 'wrong version number')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in
_make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in
_validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 366, in connect
self.sock = ssl_wrap_socket(
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 370, in
ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 491, in
wrap_socket
raise ssl.SSLError("bad handshake: %r" % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version
number')])",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=9200): Max
retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL
routines', 'ssl3_get_record', 'wrong version number')])")))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-
packages/elasticsearch/connection/http_requests.py", line 166, in perform_request
response = self.session.send(prepared_request, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=9200): Max
retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL
routines', 'ssl3_get_record', 'wrong version number')])")))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/elastalert-create-index", line 11, in <module>
load_entry_point('elastalert==0.2.1', 'console_scripts', 'elastalert-create-index')()
File "/usr/lib/python3/dist-packages/elastalert/create_index.py", line 264, in main
create_index_mappings(es_client=es, ea_index=index, recreate=args.recreate,
old_ea_index=old_index)
File "/usr/lib/python3/dist-packages/elastalert/create_index.py", line 23, in
create_index_mappings
esversion = es_client.info()["version"]["number"]
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/client/utils.py", line 168,
in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/client/__init__.py", line
294, in info
return self.transport.perform_request(
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/transport.py", line 413, in
perform_request
raise e
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/transport.py", line 381, in
perform_request
status, headers_response, data = connection.perform_request(
File "/usr/local/lib/python3.8/dist-
packages/elasticsearch/connection/http_requests.py", line 181, in perform_request
raise SSLError("N/A", str(e), e)
elasticsearch.exceptions.SSLError: ConnectionError(HTTPSConnectionPool(host='localhost',
port=9200): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad
handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')])"))))
caused by: SSLError(HTTPSConnectionPool(host='localhost', port=9200): Max retries
exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL
routines', 'ssl3_get_record', 'wrong version number')])"))))
我从 https://github.com/khezen/docker-elastalert 拿走了 elastalert,然后跟着 https://elastalert.readthedocs.io/en/latest/running_elastalert.html#tutorial
请帮助我我想使用警报从 kibana 发送电子邮件