v1
latestSwagger 2.02026-07-172964242.9 KBHost
Get host task logs
Returns the log of a particular task for a host.
get/v1/hosts/{host_id}/tasks/{task_id}/logs
Path parameters
host_idstring required
A user-specified identifier. Must be 1-36 characters, contain only lower-cased letters and hyphens, start and end with a letter or number, and not contain consecutive hyphens.
task_idstring uuid required
ID of the task to get the logs for.
Query parameters
after_entry_idstring uuid
ID of the entry to start from.
limitinteger
Maximum number of entries to return.
Response
OK response.
Example response
{
"entity_id": "storefront",
"entries": [
{
"message": "refreshing current state",
"timestamp": "2025-06-18T17:53:19Z"
},
{
"fields": {
"duration_ms": 8972
},
"message": "finished refreshing current state (took 8.972080116s)",
"timestamp": "2025-06-18T17:53:28Z"
},
{
"fields": {
"host_id": "host-1",
"resource_id": "storefront-n1-689qacsi-backup",
"resource_type": "swarm.pgbackrest_config"
},
"message": "creating resource swarm.pgbackrest_config::storefront-n1-689qacsi-backup",
"timestamp": "2025-06-18T17:53:29Z"
},
{
"fields": {
"host_id": "host-2",
"resource_id": "storefront-n2-9ptayhma-backup",
"resource_type": "swarm.pgbackrest_config"
},
"message": "creating resource swarm.pgbackrest_config::storefront-n2-9ptayhma-backup",
"timestamp": "2025-06-18T17:53:29Z"
},
{
"fields": {
"duration_ms": 383,
"host_id": "host-3",
"resource_id": "n3",
"resource_type": "swarm.pgbackrest_stanza",
"success": true
},
"message": "finished creating resource swarm.pgbackrest_stanza::n3 (took 383.568613ms)",
"timestamp": "2025-06-18T17:54:02Z"
},
{
"fields": {
"duration_ms": 1181,
"host_id": "host-1",
"resource_id": "n1",
"resource_type": "swarm.pgbackrest_stanza",
"success": true
},
"message": "finished creating resource swarm.pgbackrest_stanza::n1 (took 1.181454868s)",
"timestamp": "2025-06-18T17:54:03Z"
}
],
"last_entry_id": "0197842d-303b-7251-b814-6d12c98e7d25",
"scope": "database",
"task_id": "0197842c-7c4f-7a8c-829e-7405c2a41c8c",
"task_status": "completed"
}