aws rds describe-db-log-files
Returns a list of DB log files for the DB instance. AWS CLI reference
1 example 7 options Its page in the AWS CLI reference
Examples
To describe the log files for a DB instance
The following describe-db-log-files example retrieves details about the log files for the specified DB instance.
aws rds describe-db-log-files --db-instance-identifier test-instanceIdentify--db-instance-identifierThe customer-assigned name of the DB instance that contains the log files you want to list.Its output, shortened
{
"DescribeDBLogFiles": [
{
"Size": 0,
"LastWritten": 1533060000000,
"LogFileName": "error/mysql-error-running.log"
},
{
"Size": 2683,
"LastWritten": 1532994300000,
"LogFileName": "error/mysql-error-running.log.0"
},
{
"Size": 107,
"LastWritten": 1533057300000,
"LogFileName": "error/mysql-error-running.log.18"
},
{
"Size": 13105,
"LastWritten": 1532991000000,
"LogFileName": "error/mysql-error-running.log.23"
},
{
"Size": 0,
"LastWritten": 1533061200000,
"LogFileName": "error/mysql-error.log"
},
{
"Size": 3519,
"LastWritten": 1532989252000,
… 4 more linesFor more information, see Viewing and listing database log files in the Amazon RDS User Guide.
Options
--db-instance-identifierThe customer-assigned name of the DB instance that contains the log files you want to list.--file-last-writtenFilters the available log files for files written since the specified date, in POSIX timestamp format with milliseconds.--file-sizeFilters the available log files for files larger than the specified size.--filename-containsFilters the available log files for log file names that contain the specified string.--filtersThis parameter isn't currently supported.--markerThe pagination token provided in the previous request.--max-recordsThe maximum number of records to include in the response.