List logs

View as Markdown
GET
/logs

Retrieves a paginated list of system logs. Optional query parameters allow searching, filtering, and sorting the results.

Authorization

API-Key
headerX-API-KEY<token>

MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>

Query Parameters

page?integer

The page number to retrieve.

Formatint32
Range1 <= value
Default1
size?integer

The number of logs to return per page.

Formatint32
Range1 <= value <= 50
Default10
filter?string

Optional Lucene-style filter expression used to search by attributes.

sort?string

Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - time_stamp, category, code, type, and name

Response Headers

200

x-Pagination?object

Returns the x-Pagination header

page_size*integer

Number of items returned per page.

Formatint32
current_page*integer

The current page number.

Formatint32
total_count*integer

Total number of items available.

Formatint32
has_previous*boolean

Indicates whether a previous page exists.

has_next*boolean

Indicates whether a next page exists.

x-monocloud-log-window?string

Returns the x-monocloud-log-window header

Response Body

200

application/json

The log entries were retrieved successfully

TypeScript Definitions

Use the response body type in TypeScript.

Returns an array. Each item has the fields below.

Log Response: Represents an audit log entry capturing a system or security event.

Errors

401Unauthorized
403Forbidden
curl -X GET "https://your-domain.us.monocloud.com/api/logs?page=1&size=10&filter=authentication&sort=category%3A1" \  -H "X-API-KEY: <token>"
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "time_stamp": 0,    "category": "authentication",    "name": "string",    "description": "string",    "type": "success",    "code": "authorization_success",    "message": null,    "system": {      "activity_id": null,      "process_id": 0,      "local_ip": {        "ip": "string",        "version": "string"      }    },    "request": {      "trace_id": null,      "user_agent": null,      "remote_ip": null,      "location": null,      "is_mtls": true,      "is_spiffe": true,      "trust_store_id": null,      "certificate_subject": null,      "certificate_issuer": null,      "certificate_thumbprint": null,      "certificate_serial_number": null,      "certificate_san_uris": null,      "certificate_san_dns_names": null,      "certificate_san_ip_addresses": null,      "certificate_san_emails": null,      "certificate_san_upns": null,      "spiffe_id": null    },    "source": null,    "actor": {      "type": "user",      "id": null,      "name": null,      "identifier": null,      "session_id": null    },    "targets": [      {        "type": "user",        "id": null,        "name": null,        "identifier": null      }    ],    "client": null,    "details": null  }]
© 2026 MonoCloud. All rights reserved.