-
Notifications
You must be signed in to change notification settings - Fork 41
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
Ruby exception occurred: can't convert Array into an exact number #52
Comments
you are getting an array of values for timezone. Just comment out the whole "day of week, hour of day" section on syslog-fortinet-common_ecs-output.conf and check what value are you are getting for timezone. Let's troubleshoot from there |
Can you see this log, i see this log not success sent log to ES, can you give advice?
i'm already makesure pipiline.yml and config file same like in you github. When i try running
and change input config for make sure config normal
It's running normal |
you are not generating event.original. that is very weird. Try changing event.original for message to see if we can make it pass the first grok at least |
Hi @enotspe
I got error in ruby filter when using config
I'm not change any config, only change port input. and output ES.
[ERROR][logstash.filters.ruby ][main][a87af76ae105d59b87fe27c4e7659d1c6cc7ec07a265cd75c57200456445fbc9] Ruby exception occurred: can't convert Array into an exact number {:class=>"TypeError", :backtrace=>["org/jruby/RubyTime.java:510:in
localtime'", "(ruby filter code):5:inblock in filter_method'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-ruby-3.1.8/lib/logstash/filters/ruby.rb:96:in
inline_script'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-ruby-3.1.8/lib/logstash/filters/ruby.rb:89:infilter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:159:in
do_filter'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:178:inblock in multi_filter'", "org/jruby/RubyArray.java:1821:in
each'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:175:inmulti_filter'", "org/logstash/config/ir/compiler/AbstractFilterDelegatorExt.java:134:in
multi_filter'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:300:inblock in start_workers'"]}
can you reproduce for this case?
Thank you
The text was updated successfully, but these errors were encountered: