describe_db_log_files
(**kwargs)¶Returns a list of DB log files for the DB instance.
This command doesn't apply to RDS Custom.
See also: AWS API Documentation
Request Syntax
response = client.describe_db_log_files(
DBInstanceIdentifier='string',
FilenameContains='string',
FileLastWritten=123,
FileSize=123,
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
MaxRecords=123,
Marker='string'
)
[REQUIRED]
The customer-assigned name of the DB instance that contains the log files you want to list.
Constraints:
This parameter isn't currently supported.
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as IDs. The filters supported by a describe operation are documented with the describe operation.
Note
Currently, wildcards are not supported in filters.
The following actions can be filtered:
DescribeDBClusterBacktracks
DescribeDBClusterEndpoints
DescribeDBClusters
DescribeDBInstances
DescribePendingMaintenanceActions
The name of the filter. Filter names are case-sensitive.
One or more filter values. Filter values are case-sensitive.
dict
Response Syntax
{
'DescribeDBLogFiles': [
{
'LogFileName': 'string',
'LastWritten': 123,
'Size': 123
},
],
'Marker': 'string'
}
Response Structure
(dict) --
The response from a call to DescribeDBLogFiles
.
DescribeDBLogFiles (list) --
The DB log files returned.
(dict) --
This data type is used as a response element to DescribeDBLogFiles
.
LogFileName (string) --
The name of the log file for the specified DB instance.
LastWritten (integer) --
A POSIX timestamp when the last log entry was written.
Size (integer) --
The size, in bytes, of the log file for the specified DB instance.
Marker (string) --
A pagination token that can be used in a later DescribeDBLogFiles
request.
Exceptions
RDS.Client.exceptions.DBInstanceNotFoundFault
Examples
This example lists matching log file names for the specified DB instance, file name pattern, last write date in POSIX time with milleseconds, and minimum file size.
response = client.describe_db_log_files(
DBInstanceIdentifier='mymysqlinstance',
FileLastWritten=1470873600000,
FileSize=0,
FilenameContains='error',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}