Logstash and logstash-output-mongodb


(sampasei) #1

Hi,
i'm trying to use logstash with mongodb output plugin but i have some problems with floating point numbers.
Below an example

Failed to send event to MongoDB {:event=>#<LogStash::Event:0xcdd2742 @metadata_accessors=#<LogStash::Util::Accessors:0x6f90bf67 @store={"beat"=>"filebeat", "type"=>"log"}, @lut={}>, @cancelled=false, @data={"uid"=>"CklsCe2KJj79TjAWqg", "auc_confidence"=>#<BigDecimal:35a05fb6,'0.95E2',2(4)>, ....:exception=>#<NoMethodError: undefined method `bson_type' for #<BigDecimal:35a05fb6,'0.95E2',2(4)>>, 

this is my json input

{"ts":1449679095.368664,"uid":"CklsCe2KJj79TjAWqg","auc_confidence":95.0}

How can i avoid this problem?
Thanks


(zhang.yingbing) #2

Hi, friend, I've got this problem. Have you got a solution?


(sampasei) #3

Sorry but i haven't found any solution yet...


(zhang.yingbing) #4

you can update logstash-output-mongodb version to 2.0.6


(system) #5