diff --git a/cowrie/output/jsonlog.py b/cowrie/output/jsonlog.py index 8f0aeab..50d287b 100644 --- a/cowrie/output/jsonlog.py +++ b/cowrie/output/jsonlog.py @@ -47,7 +47,7 @@ class Output(cowrie.core.output.Output): fn = cfg.get('output_jsonlog', 'logfile') dirs = os.path.dirname(fn) base = os.path.basename(fn) - self.outfile = twisted.python.logfile.DailyLogFile(base, dirs) + self.outfile = twisted.python.logfile.DailyLogFile(base, dirs, defaultMode=0o664) def start(self):