多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 安装插件 ``` /opt/td-agent/bin/fluent-gem install fluent-plugin-mongo ``` ## 实例 ``` # Single MongoDB <match mongo.**> @type mongo host fluentd port 27017 database fluentd collection test # for capped collection capped capped_size 1024m # authentication user michael password jordan <inject> # key name of timestamp time_key time </inject> <buffer> # flush flush_interval 10s </buffer> </match> ```