Lists the log and accounting files available now, with download links.
A way to read the log without logging into the machine — and at the same time a way to read it for anyone who has reached the monitor port: logs and accounting hold recipient addresses and receiver replies.
To close the files while keeping the monitor, use the deny-logs qualifier on the monitor level in http-access.
For a program — the /logs?format=json list and a file by name with /getFile?file=….
What question the page answers:
| Question | This one or not |
|---|---|
| which logs and accounting files exist | yes |
| download a file without logging into the machine | yes |
| what happened to the messages yesterday | yes — through the accounting file, until it is deleted |
# close the files to an address that only needs the monitor http-access 10.0.0.0/8 monitor,deny-logs
4 relations
The telemetry contractThe mechanism that is visible here. § 5.11
The node's own logThe file this output refers to. § 5.11Where the node writes why it did not startThe file this output refers to. inference
Return a node fileThe request that returns the same thing as a structure. § 5.11
grep -n 'http-access' /etc/pmta/config
curl -s -o /dev/null -w "%{http_code}\n" 'http://127.0.0.1:8080/logs?format=json'
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 log and accounting — two files and two different questionsThe engine keeps a separate log and a separate accounting file; the separation is made for the sake of format, performance and the ability to hand over the log without disclosing data.◇A file, a program or an endpoint — and a file under each of the threeThree ways to hand off accounting records; an endpoint still has a file underneath, which is deleted only after a successful send, and a non-2xx response triggers a retry.