List logs
Retrieves a paginated list of system logs. Optional query parameters allow searching, filtering, and sorting the results.
API-KeyX-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>
The page number to retrieve.
int321 <= value1The number of logs to return per page.
int321 <= value <= 5010Optional Lucene-style filter expression used to search by attributes.
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
Returns the x-Pagination header
Number of items returned per page.
int32The current page number.
int32Total number of items available.
int32Indicates whether a previous page exists.
Indicates whether a next page exists.
Returns the x-monocloud-log-window header
Response Body
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
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 }]