ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[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> ```