Audit log: what is recorded and why it can be trusted
For: product owners, BAs, business admins and accountants. The rule: Zyrohs keeps a record of who signed in, who changed access, and every change to money, stock and access data. Nobody can edit that record, Zyrohs included.
A shop needs to answer questions like "who changed this invoice from 5,000 to 500?", "who signed in at 2 a.m.?" or "did someone edit the data behind the app's back?" long after the fact. The audit log is that record. It doesn't stop anyone doing anything; it makes sure that what was done can be seen later, and that the record itself can be trusted. Reading it is the Activity log screen (Activity log: who reads what).

The rules
- Two records are kept.
- Security events: sign-ins and failed sign-ins, sign-outs, locks and unlocks, password changes and resets, two-step sign-in turned on, off or reset, users and roles added, changed or deleted, a user switched on or off, every refused request, every export of the log, and the log's own daily check.
- Data changes: every record added, changed or deleted in the tables listed below.
- What a change keeps. Who made it, when, at which branch, and from which request.
- Added: the record's number.
- Changed: each changed field, before and after.
- Deleted: the whole record.
- A change to "last modified" alone is not a change.
- Secrets are never kept. A password, token, PIN, API key or one-time code shows only as changed or masked.
- Nobody can edit or delete an entry. Not a user, not an administrator, not Zyrohs itself, and not the database role that owns the log. Old entries leave only when their keeping period ends.
- No record, no action. If Zyrohs cannot write the entry for a sign-in or an account change, it refuses the action: "This action could not be recorded in the audit log, so it was not carried out. Try again; if it keeps failing, contact support." A data change and its entry are saved together, or not at all.
- Every day is sealed.
- Once a day is over (UTC), all its entries are fingerprinted, and the fingerprint is chained to the day before.
- Every night Zyrohs checks the chain, re-checks the last week's entries, and re-checks one older month in turn.
- Any entry added, changed or removed since its day was sealed shows up as a problem on the Activity log.
- Changes made outside Zyrohs are marked. A change written straight into the database, not through the app, shows as made outside the app.
- Who may read it (Activity log: who reads what).
- The role right Users › Activity Log › Read lets you search the log, across every branch.
- Export, together with Read, lets you download it as Excel; each export is itself recorded.
- Every signed-in user sees what happened to their own account.
- A reader without View Purchase Price doesn't see cost figures in the recorded changes.
What is recorded
| Area | Tables whose changes are kept |
|---|---|
| Sales | sales, sale lines, taxes, charges, discounts, shipping; sale returns; sale orders; quotations; agent commission |
| Purchases | purchases, purchase lines, taxes, charges, discounts, shipping; purchase returns; purchase orders; goods receipts and their lines |
| Money | payments, payment details and allocations, payment accounts and defaults; journals and journal lines; transactions and adjustments; posting templates; cash registers, sessions, counts and cash movements; expenses and categories; loans; capital; settlements; financial periods and years, and their closures; account types |
| Stock and products | products; prices and selling-group prices; discounts; stock; stock batches; stock batch movements; stock audits |
| Production | production runs |
| Contacts | contacts (with opening balance and credit limit); credit accounts and the credit ledger |
| Business setup | business settings; taxes and tax groups; branches; document profiles |
| Access | users, user details, roles, user roles, agents |
Not recorded yet (to be added, never removed from this list except by being recorded): business units, organisation, printer profiles, contact addresses, shipping addresses and types, portal access, bills of materials, brands, categories, units, variants and variant options, product variants, selling groups, other charge types, payment terms, warranties.
Never recorded, on purpose: sign-in sessions, locks, reset links, two-step keys and recovery codes (their events are recorded, not their secrets); a user's screen preferences; parked carts; background job progress.
Not recorded at all: viewing a record, searching the Activity log (an export is recorded), and a request refused for not being signed in.
How long it is kept
| Record | Kept for | Why |
|---|---|---|
| Security events | 2 years after the end of their month | Long enough to look back over any sign-in or access question |
| Data changes | 8 years after the end of the financial year they fall in (the system keeps 9 years from the month, whatever month the year starts in) | Books of account and their edit log are kept 8 years |
Retention is fixed in the database. No setting, user or screen can shorten it. A month leaves only once it is past retention and sealed.
What this protects against
| Without it | With it |
|---|---|
| An invoice total changed quietly, with no trace | The change shows who, when, before and after |
| A role quietly given all rights and taken back | Both changes are recorded, with who made them |
| Someone edits a row in the database directly | Marked outside the app; and if they edit the log too, the seals stop matching |
| A failed audit write lets the action through unrecorded | The action is refused instead |
Decisions
| Date | Decision | Reason |
|---|---|---|
| 2026-10-06 | If an action can't be recorded, it isn't done (503) | A record with gaps can't be relied on |
| 2026-10-06 | Data changes are captured by the database, not by each screen | Nothing can be forgotten: a new screen, an import or a bulk update is recorded the same way |
| 2026-10-06 | The log belongs to a role nobody signs in as; the app may only add and read | The people it describes can't edit it |
| 2026-10-06 | Security events kept 2 years; data changes 8 years past the financial year | Changes are part of the books' edit trail |
| 2026-10-06 | Every day sealed and chained, checked nightly | Tampering, even by someone with database access, shows |
| 2026-10-21 | Production runs, stock movements, stock audits, contacts, products, branches and document profiles are recorded | They move money or stock |
| 2026-10-21 | One older month is re-checked each night, besides the last week | Before this, an edit to last year's entries would never have been noticed |
| 2026-10-21 | The database administrator does not keep access to the log after installing it | Nobody holds it between installs |
| 2026-10-13 | Activity log readers see every branch; the branch is only a filter | An auditor needs the whole picture. Made with B6 (Activity log: who reads what) |
Open questions
| Question | Why it matters | Options |
|---|---|---|
| Keep the daily seals somewhere the database can't reach? | Today a copy goes only to the application log. Someone with full database access could rewrite entries and seals together | Write-once file storage, checked nightly; or accept the risk |
| Tell someone when the nightly check fails? | Today it shows only on the Activity log | Email or chat alert to the owner and support |
| Customer details kept after deletion | A deleted contact's record stays in the log for up to 9 years | Keep, as a legal record, and say so in the privacy policy |
Related pages
- Security architecture: layers and features
- Activity log: who reads what: who reads the log, and how
- Audit log: technical design: how it works
- Runbook: release checks for the security release: what changes at release
- Runbook: audit log problems: messages and problems, and what to do
No comments to display
No comments to display