API operation · services group
GET
/services/{name}/log
First published 14 Oct 2026
0.2.0Unchanged since publicationGet recent journal and log lines for a daemon
Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsreadallAnswers200 OK
The response includes the last lines from the systemd journal for the daemon's unit and from the daemon's own log if it is readable.
The default is 50 lines per source. Set lines to a value from 1 to 500 to change the limit for each source. Invalid name syntax or an invalid lines value returns HTTP 400.
As a command
Run as root on the serverParameters
namepath ·string, matching ^[a-z][a-z0-9.-]{0,39}$RequiredUrbeStack daemon name returned by GET /services, such as postfix, php-8.3, panel-web, or mariadb.
linesquery ·integer, 1 to 500Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/services/alice/log?lines=1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"journal": "text",
"lines": 1,
"log": "",
"log_path": "text",
"name": "alice",
"unit": "text"
}Errors
4 errors, each a status and a sentence400--name is required400A daemon is named with letters, digits, dots and hyphens400lines is 1 to 500401Authentication requiredNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/get-services-name-log/