Search logs
Changed onSearches system logs with various filter parameters. If no time range is specified, defaults to the last 24 hours.
Request
- Base URL: http://localhost:2223
- URL: http://localhost:2223/api/logs
- Auth: none required
Query parameters
Represents an instant in time as an ISO 8601 string.
ISO 8601 start of the time range (e.g. 2024-01-01T00:00:00.000Z). Defaults to 24 hours ago.
Represents an instant in time as an ISO 8601 string.
ISO 8601 end of the time range (e.g. 2024-01-02T00:00:00.000Z). Defaults to now.
Comma-separated list of log levels to include (e.g. error,warn). Valid values: silent, error, warn, info, debug, trace.
Comma-separated list of scope IDs to filter by (e.g. connector123,connector456).
Comma-separated list of scope types to filter by (e.g. south,north). Valid values: south, north, history-query, internal.
Comma-separated list of item IDs to filter by (e.g. item123,item456).
Comma-separated list of group IDs to filter by (e.g. group123,group456).
Substring to search for within log messages.
Response
Paginated list of log entries
Example response
{
"content": [
{
"timestamp": "2023-10-31T12:34:56.789Z",
"scopeId": "connector123",
"scopeName": "South Connector 1",
"itemId": "item123",
"itemName": "Temperature sensor",
"groupId": "group123",
"groupName": "Temperature sensors",
"message": "Connection failed to host: timeout after 5s"
}
],
"totalElements": 2,
"size": 10,
"totalPages": 1
}Changes
- breaking
added the new required
queryrequest parametergroupIds - breaking
added the new required
queryrequest parameteritemIds - info
removed the
web-serverenum value from the//response property for the response status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking
- breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - warning
deleted the
queryrequest parametergroupIds - warning
deleted the
queryrequest parameteritemIds - warning
added the new
web-serverenum value to the//response property for the response status
- breaking