Timestamp normalization
One timeline, two clocks
Event time records when the source says something occurred or was logged; observed time records when a collector saw it. Preserve both. If a collector sees an event at 08:04Z whose source time is 08:01Z, the difference is three minutes; that difference may include network delay, buffering or clock error.
Offsets and UTC
Use timezone-aware timestamps. In the lab subset of RFC 3339, 2026-01-15T10:00:00+02:00 equals 2026-01-15T08:00:00Z; 2026-01-15T03:01:00-05:00 equals 08:01Z. An offset-free local timestamp is ambiguous and must be quarantined under this contract, rather than interpreted using the analyst computer zone. Preserve the original value alongside normalized UTC.
Clock skew and uncertainty
A source clock may run fast or slow. Use a monitored common time source, record known offsets and uncertainty, and avoid silently rewriting original records. A negative observed-minus-event delay is a clock or mapping warning, not proof of wrongdoing. Events within the uncertainty window may be impossible to order reliably.
Worked timeline
A1 at 10:00+02:00, N1 at 03:01-05:00, and W1 at 08:02Z sort as A1, N1, W1. If W1 is observed at 08:01:30Z, retain the record and flag its negative delay. The order is by reported times, not established causality. For exact ties use a stable identifier only for presentation.
Practice and pitfalls
Normalize the lab timestamps and compute observed minus event seconds. Mark missing offsets, negative delay and late arrivals separately. The toy parser accepts whole seconds and explicit offsets only; production timestamp standards support additional forms, and this lab does not implement full RFC compliance. Never sort mixed-offset strings lexicographically as if they were instants.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Timestamp normalization — knowledge check
Apply telemetry mapping, integrity and ingestion principles to fictional scenarios.
What is 10:00+02:00 in UTC?
Which timestamp is collector arrival?
How does the classroom contract handle a missing offset?
What does negative observed-minus-event time imply?
Do close timestamps prove causality?