1、mongodb单机配置
<match mongo.**>
type mongo
database apache
collection fmongo
host Server202
port 10001
flush_interval 1s
</match>
2、mongodb复制集配置
<store>
type mongo_replset
database apache
collection fmongo
nodes Server202:10001,Server202:10002,Server201:10001,Server201:10001
flush_interval 1s
</store>