rsyslog hardening (fixing a few weird things we noticed)

This commit is contained in:
Ryan Petrello
2020-04-08 13:38:35 -04:00
committed by Christian Adams
parent 70391f96ae
commit ce82b87d9f
3 changed files with 5 additions and 1 deletions

View File

@@ -97,7 +97,7 @@ class LogstashFormatterBase(logging.Formatter):
@classmethod
def serialize(cls, message):
return bytes(json.dumps(message, cls=DjangoJSONEncoder), 'utf-8')
return ' ' + json.dumps(message, cls=DjangoJSONEncoder) + '\000'
class LogstashFormatter(LogstashFormatterBase):