ulule/python-logstash-formatter

Support new logstash format

Closed this issue · 2 comments

https://gist.github.com/jordansissel/2996677

How hard would it be to switch to the new logging format?

img

Basically, the following things need to be done:

  • @message -> message
  • @source_host -> host
  • Add @version => 1
  • Move all fields in @fields to the top level

Oh, I never realized that I can achieve exactly this by using logstash_formatter.LogstashFormatterV1 instead of logstash_formatter.LogstashFormatter. Sorry for bothering you.

This should probably be mentioned in the README.