http://madroom-project.blogspot.jp/2013/08/mysql.html 2. fluent-plugin-mysqlslowquery をインストールします。 $ sudo fluent-gem install fluent-plugin-mysqlslowquery 3. /etc/fluent/fluent.conf を編集します。 <source> type mysql_slow_query path /var/log/mysql/mysql-slow.log tag mongo.mysql.slow </source> <match mongo.mysql.slow> type mongo database fluent collection mysql.slow </match> 3. fluentdを起動します。 $ sudo fluentd
![FluentdでMySQLのスロークエリログをMongoDBに保存してみる](https://cdn-ak-scissors.b.st-hatena.com/image/square/e284259c6df02350ed58530bbf79b21a5071da35/height=288;version=1;width=512/https%3A%2F%2Fblogger.googleusercontent.com%2Fimg%2Fb%2FR29vZ2xl%2FAVvXsEhyIERbRA7aLpCiFZunrU4pLIkYpZavxzDm7GrJx4_klsS2eCANIdMjWQXSFXajeoeWGZho5-msf-CpNsqBQqJPtUpHZ9d23vYOrDrf9aYaQ6erlHk7dDS_1GkFovzx97PawfR5VdGicp4%2Fw1200-h630-p-k-no-nu%2F%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588%2B2013-08-23%2B22.51.29.png)