Immutable Audit Logs: How to Build Them and How Long to Keep Them
What makes an audit log immutable, how to design one that stands up to scrutiny, and how long Australian organisations should keep it, with ASD, ATO and NAA sources.

An immutable audit log is a record of who did what in your systems that nobody can quietly change, including the administrators who run those systems. If an application or a privileged user can edit the log, it is a diary, not evidence. For Australian organisations the practical task has three parts: make tampering impossible or detectable, record the right fields, and keep the log for the right length of time. This guide covers all three, and it is written for the people who commission software: enterprise teams, SMB owners, startup founders, agencies, e-commerce operators and professional services firms.
TL;DR
- An audit log is immutable when entries cannot be altered, or when any alteration is detectable. Ordinary logs let privileged staff edit or delete entries.
- Immutability protects the history after it is written. It does not prove the original event was recorded correctly, so capture and access design matter as much as storage.
- ASD's Information Security Manual (June 2026) asks for centralised logging, protection against modification and deletion, and event logs searchable for at least 12 months.
- There is no single retention period for every business. Your period depends on your sector, your contracts, the ATO or other regulators you answer to, and privacy law.
- Build the logging into the software from the first sprint. Retrofitting it is slower and leaves gaps.
Table of Contents
- What makes an audit log immutable
- What an immutable log cannot prove
- What to record in each entry
- Designing the log: six steps
- How long to keep audit logs
- The privacy tension: keep enough, not forever
- What this means for your type of business
- Our view on building audit logs properly
- Getting an audit-ready system built
- FAQ
- Sources
What makes an audit log immutable
An audit log records actions and changes so that a business can be held accountable and investigate incidents later. A Markle Foundation report defines the immutable version as one where authorised users cannot alter entries, or where any change is detectable. A traditional log is mutable: system administrators and others with the right privileges can add, change and delete entries.
The same report lists the building blocks that make a log hard to alter or easy to check:
- Redundant off-site copies, so changing one copy shows up against the others.
- Serialisation, where each entry carries a sequence number so gaps reveal deletions.
- Digital signatures, so a changed entry no longer verifies.
- Write-once or limited-functionality media, which physically or logically refuse edits.
The Commonwealth Fraud Prevention Centre gives a simple test in its audit logging guidance: check that logs cannot be switched off, deleted or altered, even by privileged staff. Where alteration is technically possible, the alterations themselves should be logged and the originals kept.
That test is useful because it is concrete. Ask whoever runs your platform to show you who holds the permission to delete log entries, and what happens in the record when they use it. If the answer is "a database administrator, and nothing," the log is not immutable.
What an immutable log cannot prove
Immutable does not mean true. Storage locks can guarantee a file did not change after it landed, but they cannot guarantee the data was correct before it was written. The Markle report is direct about the limits: logs only record activity fed into the system, so a back door can bypass them, and they cannot establish what a user does with information after viewing it.
Two design consequences follow:
- Every path into the system must write to the log. APIs, admin consoles, background jobs and AI agents all count. A single unlogged route defeats the whole design.
- The log writer should sit apart from the thing being logged. If the application writes its own history with the same credentials it uses for everything else, a compromised application can write a false history.
This matters more as software gains autonomy. When an AI agent sends a document, issues a refund or updates a customer record, you want a record of the agent's action, the inputs it used and the user or process it acted for. Our guide to LLM monitoring in Australia covers what to track for AI systems.
What to record in each entry
A log that is tamper-proof but thin is still a poor log. Australian guidance is consistent on the core fields.
The ASD Information Security Manual (June 2026) says each event should record the date and time, the relevant user or process, the filename, a description of the event and the IT equipment involved. It also recommends consistent, structured formats where possible, which makes searching and verification far easier.
The ATO's guidance for software developers specifies similar evidence-log fields: event date and time, user identifier, success or failure, event description, and the location and identification of the equipment. It also requires uniquely identified users and privileged users, and does not permit shared credentials. Shared logins make an audit log close to useless, because the entry cannot name a person.
What to capture, according to the Commonwealth Fraud Prevention Centre:
- Access to production systems
- Changes to production data, and who made them
- Access to sensitive information
- Activity on high-risk accounts and high-risk transactions
For a document or e-signature workflow, that translates into: who opened the document, who changed it, who signed, from which device and when, and whether each step succeeded or failed.
Designing the log: six steps
The ASD and partner agencies' August 2024 guidance on event logging is the best Australian reference for the design. Here is how it plays out when software is being built.
1. Write a logging policy first
Define which events are logged, which facilities collect them, who monitors them, how long they are retained and when the collection is reassessed. Without this, developers log whatever is convenient. It is also the document an auditor asks for first.
2. Centralise and forward promptly
Logs left on the machine that produced them are the easiest to wipe. The ISM calls for centralised logging with prompt forwarding. Send entries to a separate store as they happen, not in a nightly batch.
3. Protect the transport and the store
The guidance points to TLS 1.3 for log transport and cryptographic verification of entries. Restrict access, segment log storage from application storage and back it up. The ISM requires encryption in transit and controls against unauthorised modification and deletion.
4. Make the store append-only
Use write-once storage or an append-only structure, and chain entries with hashes or signatures so a missing or altered entry breaks the chain. Give the application permission to add entries, never to edit or remove them.
5. Synchronise clocks
Timestamps from servers with drifting clocks produce timelines that cannot be reconciled during an investigation. Use a single trusted time source across all systems.
6. Monitor and alert
An unread log protects nothing. For payment environments, PCI DSS v4.0.1 (June 2024) requires protection of logs against destruction and unauthorised modification, prompt central backup, change-detection on logs and review of specified logs at least daily. It is an industry standard for businesses handling payment cards, not an Australian statute, but e-commerce operators in scope should treat it as binding.
How long to keep audit logs
The honest answer is that it depends, and the factors are specific. ASD's ISM sets a floor of event logs that are searchable for at least 12 months, retained in line with the National Archives of Australia's records authority for technology and information management (AFDA Express Version 2). The ATO requires relevant digital service providers to keep access and event logs for at least 12 months and not delete them within that time.
Here is how the main reference points compare:
| Source | Who it applies to | Retention point |
|---|---|---|
| ASD Information Security Manual, June 2026 | Government systems, widely used as a benchmark | Event logs searchable for at least 12 months |
| ATO software developer requirements | Relevant digital service providers | At least 12 months, no deletion in that period |
| NAA AFDA Express Version 2, class 63000 | Commonwealth agencies | DNS and web-proxy event logs destroyed 18 months after action completion, with a distinction for logs showing access or data changes |
| NAA AFDA Express Version 2, general guidance | Commonwealth agencies | Event logs kept for the life of the system, or longer where appropriate to risk |
| PCI DSS v4.0.1 | Payment card environments | Protected, backed up, reviewed at least daily |
For private businesses, the 12-month figure is the sensible minimum, not the answer. ASD's August 2024 guidance warns that incident discovery can take up to 18 months and that malware can sit undetected for 70 to 200 days before causing overt harm, so default log retention may be too short. If you only find a breach in month 14, you need logs from month 1.
Other factors that push the period up or down:
- Your sector. APRA's CPS 230 on operational risk management took effect on 1 July 2025 for banks, insurers and superannuation funds. It brings new obligations but does not set one universal log retention period, so regulated entities should map logs to their own risk and record-keeping duties.
- Contracts and legal holds. Customer agreements and active disputes can require you to keep logs longer.
- Business need. Investigations, fraud reviews and customer queries often reach back further than a regulator would.
Our article on audit trail requirements in Australia goes through the 12-month versus 7-year question in more detail, and our guide to business record retention covers the wider records picture.
The privacy tension: keep enough, not forever
Audit logs contain personal information: user names, identifiers, device details. The OAIC's APP guidelines on key concepts state that generating an audit log can itself be a collection of personal information. That brings the log under the Privacy Act.
Two obligations pull in different directions. APP 11 requires reasonable steps to protect personal information from misuse, interference, loss and unauthorised access, modification or disclosure, which is the case for immutability. APP 11.2 requires reasonable steps to destroy or de-identify personal information once it is no longer needed, unless a law or court order requires you to keep it (Legal 500 guide). Commonwealth records follow a different rule: they can generally be destroyed or altered only under Archives Act authority.
The practical design answer is to plan expiry from the start. Set a retention period per log type, build a scheduled, itself-logged process that removes or de-identifies entries when the period ends, and record legal holds that suspend it. Immutability governs what happens during the retention period, not after it. Our summary of the Australian Privacy Principles for tech teams explains the other twelve.

What this means for your type of business
Enterprise. Auditors and procurement teams will ask for the policy, the field list, the storage design and the retention schedule. Build to the ISM as a reference even where it is not mandatory.
SMBs and professional services. You do not need a bespoke security operations centre. You need unique user accounts, central append-only storage, 12 months of searchable history as a floor, and a documented decision on how long to go beyond that. For accounting, legal and real estate firms, the log of who viewed and signed a client document is often the evidence you will rely on in a dispute.
Startups. Design the log into the data model at the MVP stage. Adding it after launch means migrating live data and explaining the gap to your first enterprise customer.
Agencies and consultancies. If you white-label AI features to clients, each client will expect its own log of agent actions, separated from other clients.
E-commerce. Combine payment-environment logging requirements with logs of AI agent actions such as refunds, order edits and stock changes.
Our view on building audit logs properly
Most audit logging fails in the same place: it was added at the end. A team finishes the features, then someone asks for a log, and it becomes a table the application can write to and, with the same credentials, edit.
We treat the log as part of the architecture. That means a separate write path, append-only storage, unique identities for every user and process, and a retention rule agreed before launch. It is the same thinking behind our zero-trust approach to security: assume any single component can be compromised, and make sure the record survives that.
Our own products reflect it. ksign.co brings AI into e-signature and document workflows, where a trustworthy record of who did what is central to the product, not an extra.
We would rather build a smaller system with a log you can defend than a larger one you cannot. Technology should create genuine value and last, and evidence that holds up is part of that.
Josh
Getting an audit-ready system built
If you are commissioning software that handles documents, customer records, payments or AI agents, we build the logging layer into the design from planning onward, alongside the zero-trust security, modular architecture and cloud infrastructure it depends on. Our software and AI development services cover bespoke SaaS, mobile apps, automation and agentic tooling for enterprises, SMBs, startups, agencies, e-commerce businesses and professional services firms.

If security and tamper-evident records are your priority, our ZeroTrust Vault and LogicEngine Core product lines are a good place to start the conversation.
FAQ
Is an immutable audit log the same as a blockchain?
No. A blockchain is one way to chain entries so changes are detectable, but it is not required. Append-only storage, hash chaining or digital signatures, and off-site copies achieve the same goal, as the Markle Foundation report describes. Pick the approach that fits your scale and the people who will operate it.
How long should we keep audit logs in Australia?
There is no single period for every organisation. ASD's ISM asks for event logs searchable for at least 12 months, and the ATO sets 12 months for relevant digital service providers. Because incidents can take up to 18 months to discover, many organisations keep logs longer, balanced against the privacy duty to destroy or de-identify personal information that is no longer needed.
Can administrators delete entries from an immutable log?
They should not be able to. The Commonwealth Fraud Prevention Centre advises testing that logs cannot be switched off, deleted or altered even by privileged staff. If alteration is technically possible, log the alteration itself and keep the original.
Do audit logs fall under the Privacy Act?
Often yes. The OAIC says that generating an audit log can constitute collection of personal information. That means APP 11 protection duties apply, and so does the duty to destroy or de-identify the data once it is no longer needed and no law requires you to keep it.
What should every log entry contain?
At minimum: date and time, the user or process, a description of the event, whether it succeeded or failed, and the equipment involved. The ISM and the ATO guidance both set out these fields, and structured formats make the log far easier to search and verify.
Sources
- Trusted Information: immutable audit logs report (Markle Foundation, 2006)
- Best practices for event logging and threat detection (ASD, August 2024)
- Information security manual (ASD, June 2026)
- Audit logging (Commonwealth Fraud Prevention Centre)
- Further guidance on requirements (ATO Software Developers)
- AFDA Express Version 2: Technology and Information Management (National Archives of Australia)
- Chapter B: Key concepts (OAIC)
- APRA Annual Report 2024-25
- Payment Card Industry Data Security Standard v4.0.1
- Australia data protection and cybersecurity (Legal 500, 2026)
Recommended

B2B SaaS Pricing Models: How to Choose and Build the Right One
Flat-rate, per-user, tiered, usage-based and hybrid B2B SaaS pricing models compared, with Australian examples in AUD, GST notes and how pricing shapes your build.

Salesforce Integration Patterns: Choosing the Right One
Six core Salesforce integration patterns explained: when to use each, how Platform Events fit, and the design rules that keep integrations reliable at scale.