I just migrated this to a different server and the normal events aren't coming through. I'm getting this error:
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/mimecast_log_collector/run.py", line 26, in <lambda>
p = multiprocessing.Process(target=lambda: __import__(i))
File "/opt/mimecast_log_collector/siem_events.py", line 41
log.warn('Rate limit hit. Sleeping for %s % str(resp_headers('X-RateLimitReset']))
^
SyntaxError: invalid syntax
This appears to be changed since I last updated. That log.warn line and the section it is in appears to have the wrong brackets in the wrong places - but I'm not a Python expert so my attempts to fix it didn't help.
Certainly the resp_headers(
should be resp_headers[
, but the single quotes don't match either!