NEW
Also known as: Commit Log
An append-only, immutable record of events stored in time order to enable durability, replay, and system reconstruction.
DESCRIPTION
An event log persists all events in the order they occurred. As an append-only structure, it supports durability, replication, and efficient sequential I/O. Consumers can replay the log to rebuild state or correct errors. Event logs underpin event sourcing, streaming platforms, and audit trails. Retention policies balance cost with replay needs. Strong ordering and immutability simplify concurrency and recovery logic.
ALTERNATIVE DEFINITIONS
Apache Kafka
The log is an append-only sequence of records.
Captures the core property of append-only sequencing central to event logs.
Microsoft Learn
Instead of storing just the current state, the application stores the state-changing events in an append-only store.
Links the log concept to event sourcing’s append-only event store.
Wikipedia
A logfile is a file that records either events that occur in an operating system or other software runs, or messages between different users of a communication software.
General definition of logs as records of events in systems.
RELATED TERMS
Event Stream Event Sourcing Write-Ahead Logging Change Data Capture Apache Kafka Durability Replay Immutable Data Structure Time Travel
COMPETING TERMS
KNOWLEDGE AREAS
Real-time & Streaming Data Data Engineering Data Architecture Data Storage & Operations
TARGET AUDIENCE
Data Engineer Software Developer MLOps Engineer Data Architect
EXTERNAL SOURCES
- Wikipedia - Logfile
- Apache Kafka - Kafka’s commit log design
- Martin Fowler - Event sourcing explanation
- Microsoft - Event sourcing pattern
TOP QUESTIONS
Why use an Event Log?
It provides a durable, ordered source of truth that enables replay, auditing, and deterministic system reconstruction.
Category: Relevancy
How does an Event Log differ from a Message Queue?
Queues deliver messages then drop them; logs retain events for replay and allow multiple consumers with independent offsets.
Category: Clarification
What workloads benefit from Event Logs?
Event sourcing, analytics replay, CDC pipelines, and audit trails benefit from immutable, replayable logs.
Category: UseCase
How do you manage retention in Event Logs?
Use time or size-based retention and tiered storage to balance cost against replay and compliance requirements.
Category: BestPractice
How does immutability improve reliability?
Append-only logs avoid in-place updates, simplifying concurrency, replication, and recovery across distributed systems.
Category: Concept
Can Event Logs support exactly-once semantics?
Yes, with idempotent producers, transactional writes, and offset tracking integrated with processing frameworks.
Category: Requirements
How are Event Logs partitioned?
By keys or shards to scale throughput while preserving per-partition order guarantees.
Category: Concept
What are common mistakes with Event Logs?
Too-short retention, no schema evolution strategy, and mixing commands with events can hinder replay and growth.
Category: Mistakes
How do Event Logs interact with Data Residency?
Replicas and backups must remain in compliant regions; cross-border replication could violate residency constraints.
Category: Compliance