/yumのリポジトリを/etc/yum.repos.d/10genに以下の内容で追加。
[10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 enbaled=1
インストール。
yum update yum -y install mongo-10gen mkdir -p /data/db mongod --fork --logpath /var/log/log
/opt/td-agent/embedded/bin/fluent-gemでfluent-mongo-pluginをインストールするとfluentからmongoに書き込める
<match td.apache.access> type mongo database log collection access include_tag_key true tag_key tag host localhost port 27017 flush_interval 10s buffer_chunk_limit 10m </match>
