fluent / fluent-plugin-mongo

MongoDB input and output plugin for Fluentd
https://docs.fluentd.org/output/mongo
173 stars 61 forks source link

Failed to insert large amount of data in a single time #63

Closed justanding closed 8 years ago

justanding commented 9 years ago

Hello. I tried to insert large amount of data in a single time using your plugin (actually the data is just an large array). But it didn't work. What I get is not the original data but some binary data instead. However, I successfully insert the data with the official Mongo PHP extension on my local machine. I have gone through your code and I assumed that it didn't work on Line 152 of your "out_mongo.rb" file. I am just wondering how I can use your plugin successfully? Look forward to your reply. Thank you.

repeatedly commented 9 years ago

What I get is not the original data but some binary data instead.

It seems this case > https://github.com/fluent/fluent-plugin-mongo#broken-data-as-a-bson

I am just wondering how I can use your plugin successfully?

I'm not sure because why PHP extension can insert broken or invalid BSON data in ruby mongo driver.

repeatedly commented 8 years ago

No response.