fluent / fluent-plugin-mongo

MongoDB input and output plugin for Fluentd
https://docs.fluentd.org/output/mongo
173 stars 61 forks source link

Json formatting of the log message #50

Closed cyberroadie closed 9 years ago

cyberroadie commented 9 years ago

Added a configurable feature for formatting the log message as JSON instead of a string. This can be enabled by adding 'json_msg' to the configuration.

This is useful if you want to add more key-values to the error logging for future search queries in mongo.

repeatedly commented 9 years ago

You can use record_transformer filter with enable_ruby true for this purpose. Such record modification should be done by filter, not output plugin.