I have courier input feeding the pipeline. When i try using the tcp output using codec => json
or codec => json_lines
, logstash crashes and spits this error --
LogStash::Json::GeneratorError: Failed to load class 'org.jruby.RubyObject$Access4JacksonDeserializerc66a1575': com.fasterxml.jackson.module.afterburner.ser.BeanPropertyAccessor
jruby_dump at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/json.rb:53
to_json at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/event.rb:158
encode at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-json-2.0.2/lib/logstash/codecs/json.rb:68
receive at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-tcp-2.0.2/lib/logstash/outputs/tcp.rb:143
handle at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/outputs/base.rb:80
output_func at (eval):60
outputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/pipeline.rb:252
start_outputs at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/pipeline.rb:169
Here is my config --
input {
stdin {}
courier{
port => 4546
transport => "tls"
ssl_certificate => "path/to/cert.crt"
ssl_key => "path/to/cert.key"
}
}
filter { }
output {
stdout { codec => rubydebug }
tcp {
mode => "client"
host => "172.31.6.186"
port => 4545
codec => json
}
}