Define audit events for PDF document downloads

22 September 2026

Hands type on a laptop at a light-coloured desk.
Illustrative photograph. Cropped and resized. Photo: “Woman Working” — Kristin Hardwick / NegativeSpace. · CC0 1.0

Count a PDF download at the point your system can verify delivery. Keep previews, permission checks and interrupted attempts as separate events.

Imagine a user previews a PDF, requests a download that fails, then retries successfully. A dashboard that counts every successful access check can report several downloads for this sequence. A dashboard that counts the user's clicks can report two. Neither figure tells the reviewer which attempt transferred the complete file.

Give each event an honest name

EventWhat the record can supportWhat still needs evidence
Preview openedThe application served a preview at the observed point.Whether the person saved a copy or read every page.
Download authorisedThe request passed the permission check.Whether the transfer started or finished.
First transfer interruptedThe attempt failed or ended before the expected completion signal.How much reached the recipient, unless measured.
Retry completedThe component recording completion observed its defined success condition.Anything further downstream, such as a local save, unless separately observed.

Document what a “completed” event actually means in your service. A server finishing a response, a proxy delivering bytes and a client confirming receipt are different observations. If the log ends at the server, describe that boundary in the report.

Record a non-secret interaction identifier, a separate attempt identifier, the document version, action, timestamp, outcome and the component that supplied the observation. Use the same parent interaction to group the retry with the original request. Keep their attempt identifiers different so the failed transfer remains visible. OWASP’s logging guidance describes interaction identifiers as a way to link events from the same interaction. OWASP logging guidance

Exclude reusable signed URLs, access tokens and session cookies from the evidence. Test the reporting query with a harmless document and an interrupted transfer. If the completion event is missing, record the result as unknown instead of upgrading the permission check into proof.

Compare the report with the event sequence

The example should show one preview, one interrupted download attempt and one completed retry at the documented observation point. Duplicate delivery of the same log event should not increase the count. ArkePDF’s synthetic reconstruction examples illustrate what a duplicate event and a missing terminal event do to a reconstruction. They are fixtures for checking the reporting rule. Reconstruction results

Part of the PDF editor audit trails: what should a business log record? guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).