out_mongo
Output plugin writes records into MongoDB, the emerging document-oriented database system.out_mongo
is not included in td-agent
, by default. Fluentd gem users will need to install the fluent-plugin-mongo
gem using the following command:@type
mongo
.connection_string
(required)nil
host
port
(required)database
(required)nil
collection
(required, if not tag_mapped
)tag_mapped
capped
capped_size
user
nil
password
nil
time_key
time
tag_mapped
false
out_mongo
to use Fluentd's tag to determine the destination collection.mongo.foo
, the records will be inserted into the foo
collection within the fluentd
database: