Filter logs

1. API Description

This API is used to filter logs.

Request mode: POST [ip]/api/log/filter

Administrator Rights Logged-in
Yes Yes

2. Input Parameters

Name Required Type Description
types Yes Int Log types, including all, info, warn and error, which can be separated by commas if multiple types are requested.
key Yes String The key word for filtering, which can be an empty string.

3. Output Parameters

Name Type Description
status Int Status code
code String Status description
logs Array of LogList Log list
LogList
Name Type Description
no Int The log number
time String The log time
type String The log type, including info, warn, and error
message String The log content

4. Example

Filtering all logs.

Input Example
{
  "types": "all",
  "key": ""
}
Output Example
{
    "status": 0,
    "code": "Success",
    "logs": [
        {
            "no": 0,
            "time": "2022/09/09 16:11:07.920",
            "type": "info",
            "message": "xxxxxx"
        }, 
        {
            "no": 1,
            "time": "2022/09/09 16:11:04.721",
            "type": "info",
            "message": "xxxxxx"
        }
    ]
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
7 MW_STATUS_INVALID_ARG Missing required parameters

results matching ""

    No results matching ""

    results matching ""

      No results matching ""