Description

View the error logs generated for an instance in a certain time range.

Request parameters

Name Type Required  Description
Action String Yes Required parameter. Value: DescribeErrorLogs.
DBInstanceId String Yes Instance ID
StartTime String Yes Query start time. Format: YYYY-MM-DD’T’HH:mmZ, for example, 2011-05-30T12:10Z.
EndTime String Yes Query end time, which must be later than the query start time. Format: YYYY-MM-DD’T’HH:mmZ, for example, 2011-05-30T20:10Z.
PageSize Integer No Number of records on every page. Values: 30, 50, and 100; default value: 30.
PageNumber Integer No Page number, which must be greater than 0, but must not exceed the maximum Integer value. Default value: 1.

Return parameters

Name Type Description
<Public Return Parameters> For more information, see Public parameters.
TotalRecordCount Integer  Total number of records.
PageNumber Integer Page number.
PageRecordCount Integer Number of error logs displayed on the current page.
Items
List<ErrorLogs>

ErrorLogs parameters

Name Type Description
ErrorInfo String Error log information.
CreateTime String Generation time, Format: YYYY-MM-DD’T’HH:mm:ssZ, for example, 2011-05-30 T12:11:4Z.

Request example

https://rds.aliyuncs.com/?Action=DescribeErrorLogs
&DBInstanceId=riauvjz6zajfiq6ba1370329449201
&StartTime=2011-06-11T15:00Z
&EndTime=2011-06-11T20:00Z
&<Public Request Parameters>

Return example

XML format

<DescribeErrorLogsResponse> 
  <RequestId>98504E07-BB0E-40FC-B152-E4882615812C</RequestId>
  <TotalRecordCount>1</TotalRecordCount>
  <PageNumber>1</PageNumber>
  <PageRecordCount>1<PageRecordCount>
  <Items>
    <ErrorLog>
    <ErrorInfo>spid52 DBCC TRACEON 3499, server process ID (SPID) 52. This is an informational message only; no user action is required</ErrorInfo>
    <CreateTime>2013-06-04T15:00:00</CreateTime>
    </ErrorLog>
 </Items>
</DescribeErrorLogsResponse>

JSON format

{
"RequestId":"98504E07-BB0E-40FC-B152-E4882615812C"
"PageNumber":1,
"TotalRecordCount":1,
"PageRecordCount":1
"Items":
{"ErrorLog":
[
{
ErrorInfo:”spid52 DBCC TRACEON 3499, server process ID (SPID) 52.  This is an informational message only; no user action is required”
CreateTime:”2013-06-04T15:00:00”
}
]
}
}