RDS(MySQL)ではパラメータexpire_logs_daysを設定できず、 デフォルトの状態だと5分程度でバイナリログが削除されてしまう。 RDSのバイナリログ保持期間設定はストアドで行うようになっている。 以下のストアドを実行すると24時間まで保存できるようになる。 mysql> call mysql.rds_set_configuration('binlog retention hours', 24); 参考ページ http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.Concepts.MySQL.html