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

rds-download-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

Downloads the specified log file.

Syntax

rds-download-db-logfile db-instance-identifier

--log-file-name value

[General Options]

Options

Name Description Required

--db-instance-identifier

Customer-supplied DB instance identifier; this is the name you assigned to the DB instance when you created it and is the unique key that identifies a DB instance.

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-download-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 downloads the specified log file.

Examples

Downloads a Log File

This example downloads a log file named log/ERROR.4 for a DB instance called myexampledb in the us-west-2 region.

Copy
PROMPT> rds-download-db-logfile myexampledb --region us-west-2 --log-file-name log/ERROR.4 > errorlog.txt