$ ./bin/plugin install logstash-codec-thrift
input {
zeromq {
codec => thrift {
classname => "example_thrift_class"
file => "/path/to/your/thrift/gen/ruby/example_thrift_class_types.rb"
protocol_factory => "JsonProtocolFactory" # optional, defalut: BinaryProtocolFactory
}
}
}
Install jruby:
$ brew install jruby
Install jruby bundler:
$ jruby -S gem install bundler
Install plugin dependencies:
$ jruby -S bundler install
Build Gem:
$ gem build logstash-codec-thrift.gemspec
Install Gem:
$ ./bin/plugin install /your/local/plugin/logstash-codec-thrift.gem