/log/filter

Use the interface to filter logs.

Request Mode

POST /api/log/filter
Parameter Description
method get-logs
types Log types, including all, info, warn and error, which can be separated by commas if multiple types are requested.
key The key word for filtering, which can be can be empty string

Response Body

{
    "status": 0,
    "logs": [
        {
            "time": "2021/12/20 13:18:27.210",
            "type": "info",
            "message": "User 'Admin' (192.168.66.2) logged in"
        },
        {
            "time": "2021/12/20 11:07:29.548",
            "type": "info",
            "message": "Network changed : wlan0(10.20.0.68) connected"
        },
        ...
    ]
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.
logs[i].time The log time
logs[i].type The log type, including info, warn and error
logs[i].context The log content

results matching ""

    No results matching ""

    results matching ""

      No results matching ""