Skip to content

Latest commit

 

History

History
92 lines (78 loc) · 2.1 KB

File metadata and controls

92 lines (78 loc) · 2.1 KB

loadaccesslog

Get accesslog file.

Request JSON Syntax

Key Description
task task name
token token string encrypted.

Request Sample

{
  "task": "loadaccesslog",
  "token": "cdfb4c5717170c5e9c6856b4d1c61ee8132bcc7d82bd609066ed9ece2554c47f7926f07dd201b6aa"
}

Response JSON Syntax

Key Description
task task name
status execution result, success or failed.
note if failed, a brief description will be given here
accesslog the list of the entries of the CMS access log
errorlog the list of the entries of the CMS error log

accesslog, errorlog

accesslog and errorlog are composed of objects with following structure

Key Description
user the CM user which sent the request
taskname the name of the requested task
time the time the request was handled
errornote the error message, it is only returned in errorlog
full_line the whole log line, it is returned when the line cannot be parsed

Response Sample

{
   "__EXEC_TIME" : "51 ms",
   "accesslog" : [
      {
         "@user" : "admin",
         "taskname" : "login",
         "time" : "20260814 12:47:15"
      },
      {
         "@user" : "-",
         "taskname" : "-",
         "time" : "20260814 12:47:15"
      },
      {
         "@user" : "admin",
         "taskname" : "login",
         "time" : "20260814 12:47:15"
      }
   ],
   "errorlog" : [
      {
         "@user" : "admin",
         "errornote" : "Parameter(target id) missing in the request",
         "taskname" : "updatedbmtuser",
         "time" : "20260814 12:47:17"
      },
      {
         "@user" : "admin",
         "errornote" : "Invalid request format",
         "taskname" : "updatedbmtuser",
         "time" : "20260814 12:47:17"
      },
      {
         "@user" : "-",
         "errornote" : "Version-mismatched",
         "taskname" : "login",
         "time" : "20260814 12:47:17"
      }
   ],
   "note" : "none",
   "status" : "success",
   "task" : "loadaccesslog"
}

Lists are shortened to 3 entries here.