We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At the moment boolean fields in mongo are discarded and don't reach the filter phase.
The text was updated successfully, but these errors were encountered:
Solution:
diff --git a/lib/logstash/inputs/mongodb.rb b/lib/logstash/inputs/mongodb.rb index 16b85ab..a1b021d 100644 --- a/lib/logstash/inputs/mongodb.rb +++ b/lib/logstash/inputs/mongodb.rb @@ -302,6 +302,8 @@ class LogStash::Inputs::MongoDB < LogStash::Inputs::Base else event.set(k.to_s, v) end + elsif v.is_a?(TrueClass) || v.is_a?(FalseClass) + event.set(k.to_s,v.to_s) else if k.to_s == "_id" || k.to_s == "tags" event.set(k.to_s, v.to_s )
Sorry, something went wrong.
No branches or pull requests
At the moment boolean fields in mongo are discarded and don't reach the filter phase.
The text was updated successfully, but these errors were encountered: