Get your free beta license ↗
API operation · services group
GET

/services/{name}/log

First published 14 Oct 20260.2.0Unchanged since publication

Get recent journal and log lines for a daemon

Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsreadall
Answers200 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 server

Parameters

namepath ·string, matching ^[a-z][a-z0-9.-]{0,39}$Required
UrbeStack daemon name returned by GET /services, such as postfix, php-8.3, panel-web, or mariadb.
linesquery ·integer, 1 to 500

Example

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 sentence
400--name is required
400A daemon is named with letters, digits, dots and hyphens
400lines is 1 to 500
401Authentication required
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/