You can now access the log files generated by your Amazon RDS DB Instances running MySQL, Oracle Database, or SQL Server via the AWS Management Console and the Amazon RDS APIs. You can use these logs to identify, troubleshoot, and repair configuration errors and sub-optimal performance.
You can view the logs as of a certain point in time, watch them for real-time updates, or download them for further processing (downloads are not currently supported by the AWS Management Console and can be initiated via the rds-download-db-logfile command).
You can select a DB Instance in the Console and see the list of log files:
You can then choose to View or Watch any of them:
The type of log files available to you will vary based on the database engine:
MySQL - You can monitor the Error Log, Slow Query Log, and General Log files. The Error Log is generated by default; you'll need to enable the others by using an RDS DB Parameter Group. The logs are rotated hourly and retained for 24 hours.
Oracle Database - You can access the Alert Log and Trace Files. They are retained for seven days by default; you can adjust this as needed.
SQL Server - You can access the Error Log, Agent Log, and Trace Files. They are retained for seven days and you can adjust this as needed.
Refer to the Working with Database Log Files section of the Amazon RDS User Guide to learn more.
-- Jeff;


This will make everyone's job easier, thanks
Posted by: Lrauf | March 04, 2013 at 05:45 PM
excellent, thanks !!
Posted by: Andy Goldschmidt | March 05, 2013 at 01:12 AM
Why do i get a message saying:
Note that downloading log files and viewing or watching SQL Server trace files is currently not supported via the AWS Management Console. To learn how to perform these operations via the CLI, please visit the Amazon RDS User Guide.
and my logs are empty?
Posted by: Dow Hardy | March 05, 2013 at 06:50 AM
Much needed feature!
Posted by: Varun | March 05, 2013 at 09:58 AM
This is pretty sweet. Nice work, and I'm glad to see that it includes error logs, not just the slow query log.
If realtime log visibility is useful to anyone, Papertrail supports a tiny standalone Play Framework app that retrieves slow query and general logs as they happen (from the related RDS tables) and sends them to Papertrail. It's basically a bridge from the MySQL log tables to remote syslog.
Docs and a video are here: http://help.papertrailapp.com/kb/hosting-services/amazon-rds
It was written by a Papertrail user to solve a problem, so it may not be the cleanest implementation, but it's great for realtime MySQL logs.
Posted by: Troy Davis | March 06, 2013 at 04:49 PM