diff --git a/logstash/formatter.py b/logstash/formatter.py index 2b5d618..ad59464 100644 --- a/logstash/formatter.py +++ b/logstash/formatter.py @@ -122,7 +122,7 @@ def format(self, record): '@timestamp': self.format_timestamp(record.created), '@version': '1', 'message': record.getMessage(), - 'host': self.host, + 'host': {'hostname': self.host}, 'path': record.pathname, 'tags': self.tags, 'type': self.message_type,