-
Notifications
You must be signed in to change notification settings - Fork 13
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
Java Arraylists do not play well with beefcake #9
Comments
Can you attach your logstash config? @colinsurprenant I think this is another isntance of JrJackson giving us ArrayList and we aren't converting fully. |
/cc @guyboertje. Can you please take a look? Similar issue here: elastic/logstash#3482 |
Relevant config portions:
|
We (well, @McPolemic) have a hack to get around it. public
def map_fields(parent, fields)
this_level = Hash.new
fields.each do |key, contents|
next if key.start_with?("@")
field = parent.nil? ? key : "#{parent}.#{key}"
if contents.is_a?(Hash)
this_level.merge! map_fields(field, contents)
# begin hack
elsif contents.is_a?(Array)
this_level[field.to_sym] = contents.to_a
# end hack
else
this_level[field.to_sym] = contents
end
end
return this_level
end Once we do that, we run into a different issue where beefcake tries to compare a |
PR coming soon |
PR is in main logstash repo - elastic/logstash#3772 |
PR merged closing |
Logstash seems to be sending [tags] as a Java ArrayList. Beefcake tries to do a 'compact' on it, assuming it's a Ruby Array, and throws an unknown method exception.
The text was updated successfully, but these errors were encountered: