encoder_filter

package module
v0.0.0-...-09a216b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2015 License: MPL-2.0 Imports: 4 Imported by: 0

README

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"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncoderFilter

type EncoderFilter struct {
	*EncoderFilterConfig
}

func (*EncoderFilter) ConfigStruct

func (f *EncoderFilter) ConfigStruct() interface{}

func (*EncoderFilter) Init

func (f *EncoderFilter) Init(config interface{}) (err error)

func (*EncoderFilter) Run

func (f *EncoderFilter) Run(fr FilterRunner, h PluginHelper) (err error)

type EncoderFilterConfig

type EncoderFilterConfig struct {
	EncoderTag  string `toml:"encoder_filter_tag"`
	EncoderName string `toml:"encoder"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL