The Amazon RDS Command Line Interface (RDS CLI) has been deprecated. Instead, use the AWS CLI for RDS. To learn how to download
and use the AWS CLI, see
AWS Command Line Interface User Guide. For
RDS commands available in the AWS CLI, see
AWS CLI Reference for Amazon RDS.
The AWS CLI does not currently support the DownloadCompleteDBLogFile
REST API action. To download an entire log file at once, rather than in parts using the
download-db-log-file-portion command, use the last published RDS CLI and the
Monitors a database log file and constantly polls to retrieve the most recent log file contents.
DB instance identifier. This is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.
This parameter is the default parameter and can be passed as the first
value in the command and without a parameter name, for example:
The name of the log file to be downloaded.
The command the last line written to the specified log file.
Watches a Log File
This example monitors a log file named error-running.log.20 for the DB instance named mysql-db1.
rds-watch-db-logfile mysql-db1 --log-file-name error-running.log.20