文档中心 > DescribeLogRecords
DescribeLogRecords

最近更新时间:2022-09-27

请求方法:GET

接口描述:获取日志记录

请求参数

名称

类型

是否必选

示例值

描述

Action

String

DescribeLogRecords

系统规定参数。取值:DescribeLogRecords

DBInstanceId

String

mysql-lv1xxxxxxx

数据库实例ID

LogType

String

error

日志类型。取值:error、sys

PostgreSQL产品只支持sys类型

SQL Server产品只支持error类型

FilePath

String

/mysql/log/error

文件存储相对路径

FileName

String

error

文件名

返回参数

状态码:200

名称

类型

示例值

描述

Data

String

please   use replica_skip_errors instead.

日志内容

示例

请求示例

GET https://api.unicloud.com//api/rds?

Action=DescribeLogRecords

&DBInstanceId=mysql-xxxxxxxxxxx

&LogType=error

&FilePath=/mysql/log/error

&FileName=error

返回示例

2022-07-14T13:37:25.237714+08:00 0 [Warning] [MY-011068] [Server] The syntax 'slave_skip_errors' is deprecated and will be removed in a future release. Please use replica_skip_errors instead.

2022-07-14T13:37:25.237731+08:00 0 [Warning] [MY-011068] [Server] The syntax 'slave_net_timeout' is deprecated and will be removed in a future release. Please use replica_net_timeout instead.

2022-07-14T13:37:25.237778+08:00 0 [Warning] [MY-011068] [Server] The syntax 'log_slave_updates' is deprecated and will be removed in a future release. Please use log_replica_updates instead.

2022-07-14T13:37:25.237855+08:00 0 [Warning] [MY-011068] [Server] The syntax 'slave_skip_errors' is deprecated and will be removed in a future release. Please use replica_skip_errors instead.

2022-07-14T13:37:25.237862+08:00 0 [Warning] [MY-011068] [Server] The syntax 'slave_net_timeout' is deprecated and will be removed in a future release. Please use replica_net_timeout instead.