Menu
Amazon Relational Database Service
Command Line Interface Reference (API Version 2014-10-31)

rds-watch-db-logfile

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 rds-download-db-logfile command.

Description

Monitors a database log file and constantly polls to retrieve the most recent log file contents.

Syntax

rds-watch-db-logfile db-instance-identifier

--log-file-name value

[General Options]

Options

Name Description Required

db-instance-identifier value

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: rds-watch-db-logfile my-db-instance-identifier.

Type: String

Yes

--log-file-name

The name of the log file to be downloaded.

Type: String

Yes

Output

The command the last line written to the specified log file.

Examples

Watches a Log File

This example monitors a log file named error-running.log.20 for the DB instance named mysql-db1.

Copy
PROMPT> rds-watch-db-logfile mysql-db1 --log-file-name error-running.log.20