What is an audit log?

In this page

  • Audit log vs. audit trail
  • Audit log entry decoded
  • Audit logs types by source
  • What activity gets audited
  • Windows audit logs
  • What audit logs are actually used for
  • The operational challenges of audit logging
  • What to look for in an audit logging tool
  • Audit logging at scale
  • Frequently asked questions

An audit log is a timestamped, sequential record of the actions taken inside a system: who acted, what they did, when they did it, and where the action came from. Every entry is meant to stand on its own as evidence: unaltered, attributable, and independently reviewable. That evidentiary role is what separates an audit log from a general application log or a debug trace.

Audit logging is the practice of generating those records reliably and at scale, deciding what activities to capture, configuring systems to write structured entries for each one, forwarding them to a store where they can't be tampered with, and holding onto them long enough for ensuring compliance.

The audit log is the artifact; audit logging is the process that produces and preserves it. A defensible security or compliance posture depends on both being done comprehensively at scale using a log management solution.

Audit log vs. audit trail

The two terms get used interchangeably, but they refer to different objects.

An audit log is a single structured record of one event. An audit trail is the ordered sequence of those records or log data, often stitched across multiple systems, that tells a story end to end.

In practice, an audit trail for a single incident (say, a stolen credential used to exfiltrate customer data) might pull audit log entries from a domain controller, a file server, a database, a firewall, and a cloud storage account. Each one is a discrete audit log. Stitched together in the right order, they form the audit trail investigators reconstruct after the incident.

Audit log entry decoded

A well-formed audit log entry answers seven questions of forensic value.

Field What it captures Why it matters
Event ID / name The system's identifier for the event type (e.g., Windows event ID 4625) Enables consistent filtering, correlation, and rule-writing across large volumes
Description Human-readable summary of what occurred Lets a first responder triage without decoding raw event data
Timestamp Exact date and time, ideally in UTC with millisecond precision The anchor for correlating events across systems; without it, sequencing is impossible
Actor The identity that performed the action: user, service account, API key, system process Establishes attribution—the who
Action The operation performed (logon, file read, permission change, DELETE query, API call) The what
Impacted entity The target object acted upon: a specific user account, file, database, security group, cloud resource What was accessed, distinct from the actor; often the missing field in shallow audit implementations
Source Originating IP address, hostname, workstation, process, or geographic region Distinguishes legitimate access from spoofed or lateral activity
Outcome Success or failure, plus any error or status code Failure events are often the earliest sign of an attack in progress

A sample audit log entry

Here's what a single Windows security audit log record looks like once parsed:

Event ID: 4625 Description: An account failed to log on
Timestamp: 2026-03-14T08:47:12.318Z
Actor: jdoe@corp.local
Action: Network logon attempt
Impacted entity: FIN-WS-018 (finance workstation)
Source IP: 198.51.100.42
Logon Type: 3 (Network)
Status: 0xC000006A (Bad password)
Outcome: Failure

Audit logs types by source

Audit logs come from every layer of an IT environment. The categories overlap, but each has its own conventions and pitfalls.

System logs: OS-level events, including user logons, service starts, kernel warnings, and driver failures. Windows exposes them through the Security, System, and Application channels of Event Viewer; Linux and Unix write to /var/log/auth.log, /var/log/secure, or via auditd.

Application logs: Software-specific activity. A web server records requests. An ERP tool records transaction approvals. A SaaS admin console records user role changes. Formats vary wildly, which is why parsing is half the battle.

Database audit logs: Query execution, schema changes, privilege grants, and failed authentication. In SQL Server, this comes from SQL Audit or extended events; in Oracle, from unified auditing.

Cloud infrastructure audit logs: API-level records of what was done to cloud resources like AWS CloudTrail, Azure Activity Log, or Google Cloud Audit Logs. These are increasingly the first place investigators look after a cloud breach.

Security device logs: Firewalls, IDS and IPS solutions, VPN concentrators, and endpoint protection tools. Usually delivered by syslog.

Identity and directory logs: Active Directory domain controllers, Okta, and Microsoft Entra ID. These carry the highest-signal events in most breaches, because most attacks eventually touch identity.

Most organizations generate all six types simultaneously, in different formats, on different retention schedules. Unifying them is the operational problem log collection and management platforms exist to solve.

What activity gets audited

Four categories cover most of what organizations track:

Administrative activity: Creation, modification, or deletion of accounts, groups, roles, or permissions. This includes adding a user to Domain Admins, provisioning a new API key, or removing an ex-employee from the HRIS. High signal, low volume; almost always worth auditing in full.

Data access and modification: Read, write, update, and delete operations against sensitive data: HR records, financial transactions, patient files, source code. Highest volume of the four; scoping it well (via SACLs, data classification tags, or table-level database audit rules) is what keeps the pipeline manageable.

Authentication and access denials: Successful logons, failed logons, MFA challenges, lockouts, and denied resource requests. This is where most breach timelines start and where the earliest signals of credential attacks appear. Both success and failure events matter here.

System-wide changes: Configuration changes to infrastructure: a new EC2 instance, a widened security group, a modified GPO, a firewall rule change, and a new scheduled task on a domain controller collectively map how the environment drifts from its intended state.

Windows audit logs

Windows event logs are the broader set of channels the operating system writes to—Application, System, Security, Setup, Forwarded Events. Windows audit logs are the audit-policy-driven subset of that, mainly the Security channel. For more information on Windows audit logs, see the Windows event log auditing page.

What audit logs are actually used for

Audit logs are a security control that serve the below purposes.

Access accountability: Every privileged action—a domain admin resetting a password, a database admin running a schema change, a cloud engineer widening a security group—has to be traceable to a user. Without audit logs, insider actions are indistinguishable from routine ones, and fraud investigations have nowhere to start.

Breach detection and scoping: When a compromise is suspected, the first question is always, "How far did they get?" The answer lives in audit logs: what accounts were used, from which IPs, against which resources, in what order. Miss any layer of logging and there's a blind spot in your timeline.

Correlation and pattern detection: A single 4625 event is noise. Fifty from one IP in a minute is an attack. A 4625 storm followed by a 4624 success followed by a 4672 event (special privileges assigned) is a compromise. Recognizing these correlation patterns in real time across every host, in one place, is the job of an event correlation engine.

Troubleshooting and incident post-mortem: Not every audit log review starts with a suspected attack. When a production service breaks after a configuration change, the audit trail is what separates operator error from a genuine system fault. Which admin ran the change, at what time, against which host, with what before-and-after values; without that record, root cause analysis is guesswork.

Legal and evidentiary use: Audit logs are admissible evidence in litigation, e-discovery, and regulatory enforcement. E-signature validity depends on a complete audit trail of who signed what and when. Employment disputes turn on records of system access. Chain-of-custody for evidence starts with the log entry that captured the original event. This is why immutability isn't a nice-to-have—it's what makes the record hold up under adversarial questioning.

Regulatory compliance: Every major framework—HIPAA, the PCI DSS, SOX, the GDPR, ISO 27001—treats audit logging as non-negotiable. Auditors don't accept assurances that controls are working; they want the log entries that prove it. A gap in the audit trail is a gap in the compliance posture, and the retention periods regulators require mean those entries have to survive intact for years. The audit log isn't documentation of compliance but the compliance evidence.

The operational challenges of audit logging

Setting up audit logging is the easy part. Maintaining it well over time is where most programs run into trouble. Four challenges dominate:

Deciding what to audit: Log everything and you drown in noise, pay for storage you don't need, and slow down every search that matters during an incident. Log too little and you have blind spots exactly where auditors and investigators look first. Getting the scope right is an ongoing negotiation between security, compliance, IT, and the platform teams, not a one-time policy decision.

Data volume at scale: A large enterprise generates terabytes of log data per day. Even filtered to audit-worthy events, the volume is enough to overwhelm log collection pipelines, blow retention budgets, and make interactive search painfully slow. The trade-off between completeness and cost is real, and pretending storage is free leads to programs that either can't afford their own retention policy or can't search their own data fast enough to matter during an active incident.

Protecting the audit log from tampering: An audit log an administrator can quietly rewrite is worse than no audit log at all as it gives false confidence. The account with root or Domain Admin rights on a system typically has the technical ability to modify or delete that system's logs. Preventing this requires forwarding logs off the source system in near real time, storing them in an isolated repository with a separate access control model, and using integrity mechanisms (hashing, WORM storage) that make tampering with log archives detectable even if it succeeds.

Correlating events across distributed systems: A single compromise can touch a dozen systems: an identity provider, a jump host, a database, a file server, a cloud API, a firewall. Each writes its own audit log in its own format with its own timestamp convention. Reconstructing the sequence weeks later, from raw log files, is genuinely difficult work. A centralized platform with unified parsing, log normalization, and cross-source correlation is the only way this scales.

What to look for in an audit logging tool

Before evaluating any specific platform, it helps to know what the category is supposed to deliver. Six criteria matter more than the rest:

  • Completeness of collection: Does it reach every source in your environment (Windows, Linux, Unix, databases, network devices, cloud APIs, applications) without gaps?
  • Parsing and normalization: Can it turn heterogeneous raw formats into structured, searchable fields, including formats you'll add tomorrow?
  • Search and forensics at scale: How fast is an interactive query across a year of data, and can you save queries as recurring alerts?
  • Real-time alerting on correlated patterns: It should cover not just single events but sequences that indicate an actual threat.
  • Tamper-evident retention: Encrypted, integrity-checked archives with access separated from the operational admin plane should be included.
  • Compliance reporting out of the box: It should come with predefined report templates for the frameworks you're subject to, with the ability to build custom reports for the ones you're not.

Audit logging at scale

EventLog Analyzer is built to handle each of those six criteria in one platform.

  • It collects logs from over 750 sources, includingWindows, Linux, Unix, databases, network devices, cloud APIs, and applications—agentless where possible, agent-based where required.
  • A universal parser handles any human-readable format, and the engine processes 25,000 logs per second.
  • Real-time event correlation flags patterns like brute-force attempts, data theft indicators, and privilege escalation as they unfold, wired to automated response workflows for immediate containment.
  • Encrypted, integrity-checked log archives keep the record defensible for years, with role-based access separating the log store from the systems being logged.
  • Over 1,000 predefined reports cover the PCI DSS, HIPAA, SOX, the GDPR, ISO 27001, FISMA, the GLBA, and GPG 13, with a builder for anything not shipped out of the box.

An audit log is only useful if it's complete, trustworthy, and there when you need it. Getting all three right across every system in a modern environment, held to regulatory retention periods, and defensible under investigation is not a problem native tools were built to solve. A dedicated log management platform closes that gap, turning raw event data into the evidence security teams, auditors, and investigators can actually rely on.

What's next?

Move beyond native tools to enterprise-grade audit logging

EventLog Analyzer delivers unified collection, real-time correlation, and long-term retention at scale.

Frequently asked questions

What is the difference between a log and an audit log?

A log is any record of system activity, including debug messages, informational events, performance counters, and errors. An audit log is a narrower category: It captures security- or compliance-relevant events specifically, in a structured format designed to be reviewed by auditors or investigators. Every audit log is a log; most logs are not audit logs.

What is the difference between an audit log and an activity log?

An activity log records what happened in a system for operational visibility—page views, feature usage, background jobs, session activity. An audit log records the same underlying events but with the structure, attribution, and integrity guarantees needed to serve as evidence. Activity logs help teams understand usage; audit logs help auditors, investigators, and regulators establish accountability. Every audit log is an activity log; most activity logs are not audit logs.

What are the two types of audit logs?

Audit logs are commonly split two ways. By source, they divide into system-generated logs (OS, application, database, and infrastructure events written automatically by the platform) and user activity logs (actions performed by named accounts or service identities). By purpose, they split into security audit logs—used for breach detection and forensics—and compliance audit logs, retained as evidence for regulatory frameworks like HIPAA, the PCI DSS, and SOX.

Who can view audit logs?

Access should be restricted to security administrators, compliance officers, and named investigators. On the source system, membership in a group like Windows Event Log Readers or Linux adm is typically required. In a centralized platform, role-based access controls should limit who can search, export, or delete log data—and any privileged action on the log store itself should generate its own audit record.