logs
Search logs
Search logs within a time period
get/v1/logs
Query parameters
filterstring
A search query string
groupstring
Filter logs by a specific group name
entityIdstring
Filter logs by a specific entity id
startTimestring date-time
Timestamp in ISO 8601 format in UTC timezone: yyyy-MM-ddTHH:mm:ssZ
endTimestring date-time
Timestamp in ISO 8601 format in UTC timezone: yyyy-MM-ddTHH:mm:ssZ
directionstring
Search direction: backward, forward, or tail. Backward sorts logs from oldest to newest, forward sorts logs from newest to oldest, and tail sorts from oldest to newest.
pageSizeinteger
Number of items in a response page. Default varies by API.
skipTokenstring
Token for the requested page.
Response
The request has succeeded.
Example response
{
"logs": [
{
"id": "1793698955374546944",
"time": "2024-01-01T00:00:00Z",
"message": "This is a log message",
"hostname": "webserver.example.com",
"severity": "INFO",
"program": "httpd"
}
]
}