Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError: Cannot pack type: org.jruby.RubyTime while trying use tcp output #3

Open
suyograo opened this issue Apr 30, 2015 · 1 comment
Labels

Comments

@suyograo
Copy link
Contributor

From @edwardchuang elastic/logstash#3121

I am trying to export my logstash log to fluentd forwarder by

output {
 tcp {
    codec => "fluent"
    host => "10.88.51.215"
    port => 24224
  }
}

But I got the error message below:

ArgumentError: Cannot pack type: org.jruby.RubyTime
           pack at org/msgpack/jruby/MessagePackLibrary.java:63
         encode at /home/logstash/lib/logstash/codecs/fluent.rb:52
        receive at /home/logstash/lib/logstash/outputs/tcp.rb:143
         handle at /home/logstash/lib/logstash/outputs/base.rb:86
     initialize at (eval):61
           call at org/jruby/RubyProc.java:271
         output at /home/logstash/lib/logstash/pipeline.rb:266
   outputworker at /home/logstash/lib/logstash/pipeline.rb:225
  start_outputs at /home/logstash/lib/logstash/pipeline.rb:152

Any clue ?

@suyograo
Copy link
Contributor Author

Time is not supported by MessagePack, you have to convert it to a number or string.

msgpack/msgpack-ruby#58

@kares kares added the invalid label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants