fluent / fluent-plugin-mongo

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

In output mongo, add object_id_keys parameter to convert string to Mongo ObjectId #170

Closed tchandelle closed 2 years ago

tchandelle commented 2 years ago

This pull request add a new parameter in the output plugin mongo.

The parameter object_id_keys works in the same way as date_keys. Fields are converted from string into BSON::ObjectId when inserted into MongoDB.

ashie commented 2 years ago

Thanks for your contribution!