使う機会ありそうだったのでやってみる。めんどくさいんで色々デフォルト設定でやる。 $ gem install fluentd $ gem install fluent-plugin-mongo $ gem install bson_ext $ fluentd --setup ./etc/fluent $ vim etc/fluent/fluent.conf mongoの fluent-debug に格納する etc/fluent/fluent.conf <source> type forward </source> <source> type http port 12000 </source> <match debug.**> type copy <store> type stdout </store> <store> type mongo host localhost database