Get system log entries
GET/node/:hostname/log
Retrieve log entries from the target node's system journal.
Request
Path Parameters
Possible values: non-empty
Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).
Query Parameters
Possible values: >= 1 and <= 10000
Default value: 100
Maximum number of log lines to return.
Return log entries since this time. Accepts systemd time specifications (e.g., "1h", "2026-01-01 00:00:00").
Filter by log priority level (e.g., "err", "warning", "info", "debug").
Responses
- 200
- 400
- 401
- 403
- 500
Log entries from the target node.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
The job ID used to process this request.
results
object[]
required
The hostname of the agent.
Possible values: [ok, failed, skipped]
The status of the operation for this host.
entries
object[]
Log entries from this agent.
Log entry timestamp.
Systemd unit that produced this entry.
Log priority level.
Log message text.
Process identifier that produced this entry.
Hostname of the system that produced this entry.
Error message if the agent failed.
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"results": [
{
"hostname": "string",
"status": "ok",
"entries": [
{
"timestamp": "2026-01-15T10:30:00Z",
"unit": "nginx.service",
"priority": "info",
"message": "Server started successfully",
"pid": 1234,
"hostname": "web-01"
}
],
"error": "string"
}
]
}
Bad request - validation error.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Error retrieving log entries.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}