Written by ManageEngine, IT security team Updated on May 2026
What is audit log retention
Compliance requirements
Security risks
Best practices
Monitoring with ADAudit Plus
FAQ
What is audit log retention
Audit log retention is the practice of storing system activity records for a defined period so they remain available for compliance audits, security investigations, and operational troubleshooting. Every authentication event, object change, permission modification, and file access your environment generates becomes part of this record.
The Security event log captures authentication and authorization events.
The Directory Service log records changes to AD objects.
The System log tracks service state changes, startup, and shutdown events.
The Application log captures software-level events from applications running on domain-joined machines.
Retention and archival are related but distinct. Retention defines how long records must be kept. Archival defines where and how those records are stored once they leave the source system.
A retention policy without an archival strategy is incomplete. Native logs stored on the source machine are vulnerable to overwrite, disk failure, and tampering.
How audit log retention works in Active Directory
Windows Security event logs operate on a circular model. Each domain controller stores its Security log locally with a default maximum size of 128 MB. When the log file hits that limit, the oldest events are overwritten.
On a busy domain controller generating thousands of events per hour, 128 MB of log space can fill in days. Retention on domain controllers is not time-based; it is size-based. Your effective retention window depends entirely on event volume and the maximum log size you configure.
Logs are never replicated between domain controllers. Each DC holds only the events it generated.
Microsoft Entra ID (formerly Azure Active Directory) handles retention differently. Free-tier tenants retain sign-in and audit logs for seven days. P1 and P2 tenants retain them for 30 days.
To keep Entra ID logs longer, you need to route them to a Log Analytics workspace or a storage account where you control the retention period.
Microsoft 365 Purview has its own retention tiers. Standard licenses retain unified audit log data for 180 days. E5 licenses extend that to one year.
Organizations in regulated industries can purchase the 10-Year Audit Log Retention add-on, which requires an E5 license or E5 Compliance add-on as a prerequisite.
Default audit log retention by platform
Platform
Log type
Default retention
Extended options
On-premises AD (domain controller)
Security event log
Until 128 MB log is full (days vary by volume)
Increase max log size; archive externally
Microsoft Entra ID (Free)
Sign-in and audit logs
7 days
Upgrade to P1/P2
Microsoft Entra ID (P1/P2)
Sign-in and audit logs
30 days
Route to Log Analytics (configurable)
Microsoft 365 (Standard)
Unified audit log
180 days
Upgrade to E5 or add-on
Microsoft 365 (E5)
Unified audit log
1 year
10-Year Audit Log Retention add-on
The gap between what native tools retain and what compliance standards require is large. Most standards demand years of retained records. Native tools offer days or months at best without manual intervention.
Compliance requirements for audit log retention
Compliance auditors need historical evidence that access controls were enforced, changes were tracked, and incidents were recorded. The retention period each standard mandates reflects how far back auditors may need to look during an examination.
Compliance retention requirements
Standard
Required retention period
What must be retained
HIPAA
6 years
Access to ePHI, user activity, security incidents
PCI-DSS
1 year (with 3 months immediately available)
Access to cardholder data environments, authentication events
SOX
7 years
System access controls, privileged user activity, financial data changes
GDPR
Duration of data processing + reasonable period
Personal data access, consent records, data subject requests
FISMA
3 years (minimum per NIST SP 800-53 AU-11)
System activity, security-relevant events, access attempts
GLBA
6 years
Financial data access, user authentication, system changes
ISO 27001
Defined by organization's ISMS (typically 3+ years)
All information security events per Annex A controls
Meeting these requirements with native Windows tools alone is difficult. A domain controller's Security log cannot reliably hold even one month of data under normal event volume, let alone the six or seven years that HIPAA and SOX demand. Microsoft Entra ID's 30-day maximum on P1/P2 tenants falls short of every standard listed above without additional routing and storage configuration.
Organizations subject to multiple standards must retain logs for the longest applicable period. If you fall under both HIPAA (six years) and SOX (seven years), seven years becomes your effective minimum.
Building a centralized archival strategy around the longest requirement is simpler than managing separate retention periods per standard. It also creates a single evidence store for auditors regardless of which standard they are evaluating.
Security risks of poor audit log retention
When logs are overwritten or unavailable, you lose the ability to investigate breaches after the fact. Attackers who gain a foothold in your environment often stay undetected for weeks or months. If your Security event logs only hold a few days of data, the evidence of initial compromise, lateral movement, and privilege escalation may already be gone by the time you notice the breach.
This is the part that should worry you more than compliance fines: you can't investigate what you didn't keep.
Active Directory attacks leave specific traces in Kerberos and replication logs. A Kerberoasting attack generates anomalous Kerberos service ticket requests (Event ID 4769) that you can identify in historical log data. A Golden Ticket attack produces forged Kerberos TGT usage patterns visible in Event ID 4768 records.
A DCSync attack triggers directory replication events from non-domain-controller sources. Without retained logs covering weeks or months of activity, forensic analysts cannot reconstruct these attack timelines.
Compliance audit failures carry direct financial consequences. Auditors who request six years of access records and receive six days of overwritten logs will flag the gap as a control deficiency. For standards with enforcement mechanisms (HIPAA, PCI-DSS, GDPR), that deficiency can result in fines, mandatory remediation, or loss of certification.
Insider threats are equally hard to spot without historical baselines. If a privileged user gradually escalates access over several months, you need months of logon, permission change, and group membership data to see the pattern. Short retention windows make anomalous behavior invisible because there is no baseline to compare against.
ADAudit Plus addresses this gap by archiving Active Directory audit data from all configured domain controllers into a centralized store with configurable retention periods. Forensic investigators can trace attack activity like Kerberoasting and Golden Ticket patterns through the attack surface analyzer, even when native logs on the source domain controllers have long since been overwritten.
Native tool limitations for audit log retention
Windows Event Viewer's circular logging model overwrites evidence as soon as the Security log reaches its maximum size. There is no built-in mechanism to prevent this beyond increasing the log file size, which only delays the problem.
Each domain controller stores its logs independently. There is no native centralized collection across domain controllers. Windows Event Forwarding (WEF) can aggregate logs to a collector server, but configuring and maintaining WEF across a large environment takes real effort and ongoing attention.
Native tools offer no scheduled report delivery from historical data. If a compliance auditor requests a logon activity report covering the past three years, you cannot generate that from Event Viewer. The data either no longer exists or must be manually pieced together from exported log files scattered across multiple servers.
On-premises Active Directory logs and Microsoft Entra ID logs live in completely separate systems. Correlating a user's on-premises logon failures with their cloud sign-in activity means switching between Event Viewer and the Entra ID portal, with no unified view.
There are no native real-time alerts tied to retention policy violations. If a domain controller's Security log fills up and begins overwriting events, nothing built-in notifies you that evidence is being lost.
Exporting and storing logs externally requires scripting or third-party tools. Administrators must write PowerShell scripts or scheduled tasks to extract events, compress them, and move them to an archive location, then build a retrieval process to query those archives when needed. It works, but it is fragile and tends to break during staff turnover.
For Microsoft 365, anything beyond 180 days of audit log retention requires an E5 license or a paid add-on. Organizations on Standard licenses have no native path to long-term retention without upgrading.
Best practices for audit log retention
These practices apply whether you are building a retention strategy from scratch or tightening an existing one.
1. Archive log data centrally. Store audit logs from all domain controllers, member servers, and workstations in a single location outside the source systems. This protects against local log overwrite and gives you a unified search point during investigations.
A centralized archive also simplifies compliance; auditors can query one system instead of requesting exports from dozens of servers.
2. Set the maximum Security log size. Increase from the 128 MB default to accommodate your environment's event volume. Calculate the appropriate size based on your daily event generation rate and the local retention window you need before logs are picked up by your centralized archive.
This buys time between collection intervals.
3. Define retention periods by log type and compliance need. Not all logs require the same retention. Security and authentication logs tied to compliance reports may need six to seven years.
Operational system logs (service starts, disk events) may need only one year. Mapping retention to compliance requirements prevents both under-retention (compliance risk) and over-retention (storage cost).
4. Reduce event noise. Configure audit policies to capture security-relevant events without flooding logs with routine noise. Use Advanced Audit Policy Configuration to target specific event categories rather than enabling broad audit policies that generate millions of low-value events.
Fewer irrelevant events means your storage goes further and your Security log holds useful data longer.
5. Synchronize system clocks. NTP synchronization across all domain controllers and servers keeps log timestamps accurate. When you correlate events across multiple systems during an investigation, even a few minutes of clock drift can make an attack timeline impossible to follow.
Accurate timestamps are also a requirement for log evidence to hold up during compliance audits.
6. Automate retention policy enforcement. Use tools that automatically archive, compress, and purge logs based on defined policies. Manual processes break down during staff turnover, holidays, and high-workload periods, and those tend to be exactly when attackers exploit gaps.
7. Test log retrieval regularly. Archived logs are worthless if you cannot retrieve and search them when needed. Test your retrieval process quarterly by requesting a specific report from archived data (for example, all logon failures for a named user during a two-week window six months ago).
If it takes hours or fails, your archival strategy needs work.
ADAudit Plus collects Security event logs from all configured domain controllers, member servers, and workstations into a single console. This eliminates the native limitation where each machine stores its logs independently and evidence is lost to circular overwrite.
The product provides configurable data archival with retention periods you set to match your compliance requirements. Archived data is stored separately from active data, so long-term records do not consume the same resources as your day-to-day audit console. You can generate audit reports from archived historical data, which means a compliance auditor requesting three-year-old logon activity gets a formatted report, not a raw event log export.
Real-time alerts on security events feed into the retained audit trail. When ADAudit Plus detects a security audit log being cleared (Event ID 1102), a privileged account lockout, or an anomalous logon pattern through its user behavior analytics engine, the alert fires immediately, and the underlying event data is already being archived for future investigation.
Pre-configured compliance report sets cover SOX, HIPAA, PCI-DSS, FISMA, GLBA, GDPR, and ISO 27001. Each report set maps to the controls the standard requires, so you do not need to build custom queries to prove compliance.
Native tools vs. ADAudit Plus for audit log retention
Capability
Native Windows tools
ADAudit Plus
Centralized log collection
Not built-in (requires WEF setup)
Automatic from all configured sources
Long-term archival
Manual export or scripting required
Built-in configurable archival
Reports from archived data
Not available
Generate compliance reports from historical archives
It depends on your compliance requirements and risk tolerance. At minimum, retain one year of security logs for incident response. For regulated industries, retain six to seven years per the applicable standard (HIPAA: six years, SOX: seven years, PCI-DSS: one year with three months immediately available).
If you are subject to multiple standards, retain for the longest applicable period.
Yes. Active Directory generates Security event logs on domain controllers that record authentication events, object changes, permission modifications, and policy changes. These logs are stored locally on each domain controller with a default maximum size of 128 MB, and they are overwritten when full.
Logs are not replicated between domain controllers, so each DC holds only the events it generated.
On-premises Windows Security logs do not have a time-based expiration. They operate on a size-based circular model: once the log file reaches its maximum size, the oldest events are overwritten.
In cloud platforms, logs expire based on license tier. Microsoft Entra ID retains sign-in logs for seven to 30 days depending on license. Microsoft 365 retains unified audit logs for 180 days to 10 years depending on license and add-ons.
Microsoft offers a 10-Year Audit Log Retention add-on for organizations that need to retain audit records for a decade due to regulatory requirements. It requires an E5 license or E5 Compliance add-on as a prerequisite and stores unified audit log data for up to 10 years within Microsoft Purview.
In on-premises Active Directory, an administrator with sufficient privileges can clear the Security event log. Windows records this action as Event ID 1102, so the clearance itself is logged.
This is exactly why centralizing logs to a system outside the domain controllers matters: it preserves event records even if a compromised administrator clears the source log. ADAudit Plus sends a real-time alert when a security audit log is cleared, so the action is never invisible.