Yelp/elastalert

elastalert-create-index problem | 2022

Opened this issue · 11 comments

Getting this error when I'm trying to use this command: elastalert-create-index

isg-team@isg-machine:~/elastalert$ elastalert-create-index
Traceback (most recent call last):
File "/usr/local/bin/elastalert-create-index", line 6, in
from pkg_resources import load_entry_point
File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3260, in
def _initialize_master_working_set():
File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3272, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 581, in _build_master
ws.require(requires)
File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'elastalert==0.2.4' distribution was not found and is required by the application

Using:
Python 3.8.0
Ubuntu 18.04.6 LTS

try

pip install --upgrade setuptools
pip install --upgrade distribute
pip install --upgrade pip

Not compatible with python3.8

yelp/elastalert is unmaintained

Use yelp / elastalert only if you can self-solve

Please close

okay, so if it's not compatible with python3.8 and I'm using Ubuntu 18.04.6 LTS,
Which Python and Elastalert Version would work properly??

I think it works with python 3.8, but the README says python 3.6. Please read the README and documentation yourself.

Please close

okay thanks

If you want something that also supports python 3.6 or later, consider using elastalert2.
https://github.com/jertel/elastalert2