README.rdoc in fluent-plugin-mongo-0.2.1 vs README.rdoc in fluent-plugin-mongo-0.3.0
- old
+ new
@@ -2,12 +2,16 @@
== Component
=== MongoOutput
-Output to MongoDB database.
+Store fluent-event as MongoDB Document to MongoDB database.
+=== MongoBackup
+
+Store fluent-event to capped collection for backup.
+
== Configuratin
=== MongoOutput
<match mongo.**>
@@ -17,33 +21,37 @@
# following attibutes are optional
host fluenter
port 10000
+ # You can use 'capped' if you want to use capped collection
+ capped
+ capped_size 100m
+
# Other buffer configurations here
</match>
=== Backup to local capped collection
-Use <store> section.
+Use mongo_backup type. mongo_backup alwalys use capped collection.
- <match mongo.**>
- type mongo
- database fluent
- collection test
+ <match ...>
+ type mongo_backup
+ capped_size 100m
<store>
- size 100000
- max 1000
+ type tcp
+ host 192.168.0.13
+ ...
</store>
</match>
== TODO
=== More configuration
-- Create Capped Collection
- Create Index
+- Select insert or update
- etc
=== Infer collection name
Fluent tag is similar to database.collection in Mongo.