Skip to content

SystemLog

Provides a unified entry for managing system logs (/actuator/systemlog)


Query the content of log file

GET
/api/v1/systemlog/instance/{id}/file/{name}

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

id*

Instance id

类型string
必填
name*

File name

类型string
必填

查询参数

linesNum*

Number of log lines, default 5000

类型integer
必填
format"int32"
tail*

Whether to read from the file end, default true

类型boolean
必填

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权
变量

示例

cURL
JavaScript
PHP
Python

Delete content of log file

POST
/api/v1/systemlog/instance/{id}/file/{name}

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

id*

Instance id

类型string
必填
name*

File name

类型string
必填

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权
变量

示例

cURL
JavaScript
PHP
Python

Query the all log file names of service instance

GET
/api/v1/systemlog/instance/{id}

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

id*

Instance id

类型string
必填

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

服务器
授权
变量

示例

cURL
JavaScript
PHP
Python

Released under the GPL-3.0 License.