ct_logs
Tail journalctl logs for a systemd unit within an LXC container, returning return code, stdout, and stderr. Access is controlled by CTID allowlist.
Instructions
READ-ONLY: tail journalctl for a systemd unit inside a container. Returns the command's returncode, stdout, and stderr. Gated by the CTID allowlist when PROXIMO_ENABLE_EXEC is set; fails closed (returns a disclosed blocked status, not an exception) if exec is disabled or the CTID isn't allowed. For a fixed evidence battery instead of one unit's logs use ct_diagnose; for an arbitrary in-container command use ct_exec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctid | Yes | Numeric CTID of the LXC container to read logs from. | |
| unit | Yes | Name of the systemd unit to tail journalctl for (e.g. `nginx.service`). | |
| lines | No | Number of most-recent log lines to return. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |