shinken-solutions/shinken

[Shinken] Could not import bare 'module.py' from /var/lib/shinken/modules/elastic-logs : No module named elasticsearch

m2cci-KGY opened this issue · 3 comments

hi,
I need your help to fix my problem so i use shinken and ELK stack to make my monitoring
I install elastic-logs to store shinken logs in elasticsearch
so I don't have nothings logs in elasticsearch
I have this probleme
[Shinken] Could not import bare 'module.py' from /var/lib/shinken/modules/elastic-logs : No module named elasticsearch
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/Shinken-2.4.3-py2.7.egg/shinken/modulesmanager.py", line 114, in try_very_bad_load
return importlib.import_module('module')
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/var/lib/shinken/modules/elastic-logs/module.py", line 40, in
from elasticsearch import Elasticsearch,helpers,ElasticsearchException,TransportError
ImportError: No module named elasticsearch

Thank you for your help

Yes I installed elasticsearch-py with the sources
I don't use pip because my serveur doesn't have internet access

It's a issue related to the elk module, not the framework.