I have a custom method to return logstash format. Although initializing it doesn't seem to work.
handler = CMRESHandler(hosts=[{'host': 'localhost', 'port': 9200}],
auth_type=CMRESHandler.AuthType.NO_AUTH,
es_index_name="my_logs")
handler.setFormatter(LogstashFormatterVersion1())
I noticed in emit method in handlers.py self.format(record) is being called but return dict is not stored anywhere.
I have a custom method to return logstash format. Although initializing it doesn't seem to work.
I noticed in
emitmethod in handlers.pyself.format(record)is being called but return dict is not stored anywhere.