Lists the log and accounting files available on the node — what the monitor’s “Logs” page shows with download links.
The call is GET /logs?format=json (or xml).
There are no file contents here — only the list. /getFile serves the file itself by a name from this list.
Logs can be closed separately: the monitor level in http-access with the deny-logs qualifier keeps the monitor and closes the logs.
Access is decided by http-access based on the address the request came from. The key from http-api-key in the X-API-Key header grants full access from any address.
What to ask this endpoint:
| Question | This one or not |
|---|---|
| which logs and accounting files are on the node | yes |
| what the log says | no — /getFile |
| what happened to messages yesterday | no — that is accounting |
# the file list, then one file by name curl -s 'http://127.0.0.1:8080/logs?format=json'curl -s 'http://127.0.0.1:8080/getFile?file=log.txt' -o log.txt
2 relations
curl -s -o /dev/null -w "%{http_code}\n" 'http://127.0.0.1:8080/logs?format=json'
grep -n 'http-access' /etc/pmta/config
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇The watchdog that restarts the engineKeeps an eye on the engine and brings it back up after a crash by itself, sending a crash report to the postmaster address.◇What makes a virtual machine riskyRunning on a virtual machine is possible, but the manual does not recommend it without sufficient hardware and properly tuned hypervisor settings: under load the node may stop responding.