DescribeDBLogFiles - Amazon Relational Database Service


Returns a list of DB log files for the DB instance.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The customer-assigned name of the DB instance that contains the log files you want to list.


  • Must match the identifier of an existing DBInstance.

Type: String

Required: Yes


Filters the available log files for files written since the specified date, in POSIX timestamp format with milliseconds.

Type: Long

Required: No


Filters the available log files for log file names that contain the specified string.

Type: String

Required: No


Filters the available log files for files larger than the specified size.

Type: Long

Required: No


This parameter isn't currently supported.

Type: Array of Filter objects

Required: No


The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

Type: String

Required: No


The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results.

Type: Integer

Required: No

Response Elements

The following elements are returned by the service.


The DB log files returned.

Type: Array of DescribeDBLogFilesDetails objects


A pagination token that can be used in a later DescribeDBLogFiles request.

Type: String


For information about the errors that are common to all actions, see Common Errors.


DBInstanceIdentifier doesn't refer to an existing DB instance.

HTTP Status Code: 404



This example illustrates one usage of DescribeDBLogFiles.

Sample Request ?Action=DescribeDBLogFiles &DBInstanceIdentifier=mysqldb &MaxRecords=100 &SignatureMethod=HmacSHA256 &SignatureVersion=4 &Version=2014-09-01 &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Credential=AKIADQKE4SARGYLE/20140421/us-east-1/rds/aws4_request &X-Amz-Date=20140421T225750Z &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date &X-Amz-Signature=9020fd1bcd658614e058cd2eb8c58572cf6c11460b1e96380635ee428a52e8a1

Sample Response

<DescribeDBLogFilesResponse xmlns=""> <DescribeDBLogFilesResult> <DescribeDBLogFiles> <DescribeDBLogFilesDetails> <LastWritten>1398119101000</LastWritten> <LogFileName>error/mysql-error-running.log</LogFileName> <Size>1599</Size> </DescribeDBLogFilesDetails> <DescribeDBLogFilesDetails> <LastWritten>1398120900000</LastWritten> <LogFileName>error/mysql-error.log</LogFileName> <Size>0</Size> </DescribeDBLogFilesDetails> </DescribeDBLogFiles> </DescribeDBLogFilesResult> <ResponseMetadata> <RequestId>4c6ed648-b9f7-11d3-97bd-7999dd5a8f72</RequestId> </ResponseMetadata> </DescribeDBLogFilesResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: