GET
/
logs
/
stats
Get log statistics
curl --request GET \
  --url https://localhost:5000/logs/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Log stats retrieved successfully",
  "data": {
    "total": 123,
    "byLevel": {
      "INFO": 1000,
      "ERROR": 50,
      "WARN": 100
    },
    "topActions": [
      {
        "action": "<string>",
        "count": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

startTime
integer

Start timestamp in milliseconds

endTime
integer

End timestamp in milliseconds

Response

Log stats retrieved successfully

success
boolean
Example:

true

message
string
Example:

"Log stats retrieved successfully"

data
object