j91321 / MISP2memcached

Load MISP events into memcached for log enrichment using logstash
MIT License
12 stars 4 forks source link

misp2memcached error #1

Closed homa1978 closed 3 years ago

homa1978 commented 3 years ago

Hi !

I tried your project but get the followng error:

Traceback (most recent call last): File "./misp2memcached.py", line 26, in memcached = outputs.memcached.Memcached(config['memcached']['host'], config['memcached']['port']) File "/opt/asm/threatintel/MISP2memcached/outputs/memcached.py", line 17, in init self.client = pymemcache.client.base.Client((self.host, self.port)) AttributeError: module 'pymemcache' has no attribute 'client'

memcached is running on port 11211

homa1978 commented 3 years ago

I think there is the class Client missing. Can you add these please to the repo

j91321 commented 3 years ago

I'm having trouble replicating your error can you please provide following information?

j91321 commented 3 years ago

ping @homa1978

homa1978 commented 3 years ago

I could resolve the problem with adding

from pymemcache.client.base import Client

into outputs/memcached.py

j91321 commented 3 years ago

Closing this, not sure why that error would appear since the code imports pymemcache and then properly uses the Client class and I failed to reproduce it.

self.client = pymemcache.client.base.Client((self.host, self.port))