fluentd+mongodb 单机和复制集配置

来源:互联网 发布:网络博客无法提现 编辑:程序博客网 时间:2024/05/22 03:08

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>