View error logs

Last Updated: Sep 18, 2017

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 details, 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.

Example

  • Request example

    1. https://rds.aliyuncs.com/?Action=DescribeErrorLogs
    2. &DBInstanceId=riauvjz6zajfiq6ba1370329449201
    3. &StartTime=2011-06-11T15:00Z
    4. &EndTime=2011-06-11T20:00Z
    5. &<Public Request Parameters>
  • Return example

    XML format:

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

    JSON format:

    1. {
    2. "RequestId":"98504E07-BB0E-40FC-B152-E4882615812C"
    3. "PageNumber":1,
    4. "TotalRecordCount":1,
    5. "PageRecordCount":1
    6. "Items":
    7. {"ErrorLog":
    8. [
    9. {
    10. ErrorInfo:”spid52 DBCC TRACEON 3499, server process ID (SPID) 52. This is an informational message only; no user action is required
    11. CreateTime:”2013-06-04T15:00:00
    12. }
    13. ]
    14. }
    15. }
Thank you! We've received your feedback.