Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 996 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 996 Bytes

heka-encoder-filter

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.

EncoderFilter

To Build

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

Config

[encoder_filter_zlib]
type = "EncoderFilter"
encoder = "zlib_encoder"
message_matcher = "Fields[StreamAggregatorTag] == 'aggregated'"

[zlib_encoder]
type = "ZlibEncoder"
zlib_tag = "compressed"