POST
/
api
/
server
/
logs
Get system logs (POST)
curl --request POST \
  --url http://localhost:3000/api/server/logs \
  --header 'Content-Type: application/json' \
  --data '{
  "since": 123,
  "level": "info",
  "agentName": "<string>",
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "limit": 100
}'
{
  "logs": [
    {
      "level": 123,
      "time": 123,
      "msg": "<string>",
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agentName": "<string>"
    }
  ],
  "count": 123,
  "total": 123,
  "level": "<string>",
  "levels": [
    "<string>"
  ]
}

Body

application/json
since
integer

Timestamp (ms) to get logs from

level
enum<string>
default:info
Available options:
all,
trace,
debug,
info,
warn,
error,
fatal
agentName
string
agentId
string<uuid>
limit
integer
default:100
Required range: x <= 1000

Response

System logs

logs
object[]
count
integer
total
integer
level
string
levels
string[]