emsearcy / fluent-plugin-gelf

Buffered fluentd output plugin to GELF (Graylog2)
Apache License 2.0
33 stars 57 forks source link

Add a Fluent GELF formatter plugin #36

Closed aayamauchi closed 6 years ago

aayamauchi commented 7 years ago

Nothing is changed in the existing content, except for the README.md in order to document usage. This is part of what originally had bundled up in PR #34. The formatter plugin is implemented using a GelfUtil module, with the intention of converting the existing output plugin to use this shared functionality to make things more maintainable. I've removed the regexes from the event "level" parsing. One major change with the implementation of the GelfUtil module was to standardize on hashes with string keys, since JSON cannot serialize Ruby symbols.