A filter plugin for Mozilla Heka that does nothing but encode the payload.
A use case for this would be anytime multiple encodings are required for the payload
This Filter should probably not exist but since there is currently no other mechanism within heka that allow for multiple encodings i.e. MultiEncoder, Mutate? this will have to do.
See Building hekad with External Plugins for compiling in plugins.
Edit cmake/plugin_loader.cmake file and add
add_external_plugin(git https://github.com/michaelgibson/heka-encoder-filter master)
Build Heka: . ./build.sh
[encoder_filter_zlib]
type = "EncoderFilter"
encoder = "zlib_encoder"
message_matcher = "Fields[StreamAggregatorTag] == 'aggregated'"
[zlib_encoder]
type = "ZlibEncoder"
zlib_tag = "compressed"