An investigation timeline is only as reliable as the timestamps under it, and most log pipelines silently mix event time with ingest time, local time with UTC, and well-synchronised clocks with drifting ones. This guide explains the different times a log record carries, how time zones and offsets are expressed, how to read common formats (RFC 3339, ISO 8601, Unix epoch, Windows FILETIME, legacy syslog), how to check and measure clock skew, and which normalisation rules a log pipeline should apply. It is written for SOC analysts, DFIR investigators and log pipeline engineers, and stays vendor-neutral on SIEM field names. For the investigation method itself see the Forensic Timeline Analysis Guide; for time synchronisation infrastructure see the NTP Security Guide.
Key takeaways
- Every record has at least two times. When the event happened at the source and when your platform received or indexed it. Keep both as separate fields and never overwrite one with the other.
- Store UTC, keep the original. Normalise to UTC for correlation, but retain the raw timestamp string and the source's offset or zone so any conversion can be audited and redone.
- A timestamp without an offset is a guess. Legacy syslog (RFC 3164 style) has no year or time zone, and many application logs write local time with no offset; record the assumed zone per source rather than letting the parser default to the collector's.
- Measure skew, do not assume it. Check source clock health with chronyc or w32tm, and estimate per-host offset from events seen on two systems, before ordering events across hosts.
- Daylight saving creates hours that repeat or do not exist. Local times inside the autumn repeated hour are ambiguous without an offset, so resolve them from other evidence and flag them in the timeline.
Event time, ingest time and index time
Logs pass through several clocks before an analyst sees them. Each stage can add its own timestamp, and confusing them causes events to appear minutes or hours out of place.
| Time | Set by | Meaning | Example |
|---|---|---|---|
| Event time (source time) | The system where the action happened | When the action occurred, according to that system's clock | AWS CloudTrail eventTime: when the request completed, in UTC, taken from the host serving the API endpoint |
| Write or receive time | Local logging service | When the local log service recorded the message | systemd journald __REALTIME_TIMESTAMP: receive time in microseconds since the Unix epoch; _SOURCE_REALTIME_TIMESTAMP holds the earlier source time when it differs |
| Collection or ingest time | Forwarder, collector or SIEM | When the pipeline received the record | Added by the collector; reflects network and batching delay |
| Index time | Storage or search platform | When the record became searchable | Used for retention and search windows in many platforms |
Delays between event time and ingest time are normal. CloudTrail, for example, records a DELIVERY_DELAY reason in the addendum field when events were delivered late, and a delayed event keeps its original eventTime. Detection rules that search by ingest time can miss late events, while timelines built on ingest time put them in the wrong place. Use event time for the timeline and ingest time for pipeline health and detection latency.
journald also records __MONOTONIC_TIMESTAMP, which only has meaning together with _BOOT_ID. Monotonic times are useful for ordering events within one boot even when the wall clock was stepped, but they cannot be compared across boots or hosts.
Time zones, UTC and offsets
- Offset: the difference from UTC at that instant, such as +01:00. It is enough to convert to UTC.
- Time zone: a named set of rules, such as Europe/London, that gives different offsets at different dates. It is needed to interpret local times and to know when daylight saving applies. The IANA Time Zone Database (tz or zoneinfo) models historical local time worldwide and is updated as governments change rules; release 2026f was published on 27 October 2026. Keep the tz data on parsers and analysis hosts current.
- Z, +00:00 and -00:00: RFC 3339 uses -00:00 to mean the UTC time is known but the local offset is not. RFC 9557 (April 2024, Proposed Standard) updates RFC 3339 so that Z carries that meaning, keeps +00:00 for "UTC is the preferred reference", and prefers Z over -00:00. In practice, treat all three as the same instant and record that the source's local zone is unknown.
- Zone suffixes: RFC 9557 also defines an optional bracketed suffix, for example 2022-07-08T00:14:07+01:00[Europe/Paris]. A plain tag is elective and may be ignored when inconsistent; a tag marked critical with an exclamation mark, such as [!Europe/Paris], must be treated as an error if it conflicts with the offset.
Daylight saving and ambiguous local times: when clocks go back, one local hour occurs twice; when they go forward, one local hour never occurs. In Europe/London, a local time of 01:30 on the last Sunday in October happens twice, once at +01:00 and once at +00:00. A log that writes local time without an offset cannot tell you which. Resolve it from sequence numbers, record IDs, adjacent events with offsets, or a second source, and mark the event as ambiguous if you cannot. A local time inside the spring gap usually means the source clock or parser is wrong.
Timestamp formats (RFC 3339, ISO 8601, epoch, Windows FILETIME)
| Format | Example | Zone information | Pitfalls |
|---|---|---|---|
| RFC 3339 (a profile of ISO 8601) | 2026-03-29T00:59:58.123Z | Always has Z or a numeric offset | Applications may use a space instead of T; fractional seconds can have any number of digits |
| RFC 5424 syslog TIMESTAMP | 2026-03-29T01:59:58.123456+01:00 | Offset or Z required by the grammar; "-" (NILVALUE) if no clock | At most six fractional digits; uppercase T and Z; leap seconds must not be used |
| Legacy BSD syslog (RFC 3164 style) | Mar 29 01:59:58 | None; no year either | Collector may add the current year and its own zone; wrong around New Year and for remote sites |
| ISO 8601 local time without offset | 2026-10-25T01:30:00 | None | Ambiguous during DST changes; parser defaults vary |
| Unix epoch | 1774745998, 1774745998123 | UTC by definition | Seconds, milliseconds, microseconds and nanoseconds look alike; check digit count (10, 13, 16, 19) |
| journald realtime | __REALTIME_TIMESTAMP=1774745998123456 | UTC microseconds since epoch | Receive time, not necessarily source time |
| Windows FILETIME | 64-bit count, often shown as hex or a large integer | UTC, 100-nanosecond intervals since 1 January 1601 | FAT stores local time on disk while NTFS stores UTC; display tools convert to local time |
| Web server common log format | [29/Mar/2026:01:59:58 +0100] | Offset without colon | Some parsers ignore the offset; month names are locale dependent |
RFC 5424 Appendix A.1 notes that when a 5424 message is converted to the older format the year and time zone are dropped, and when an older message is converted to 5424 a relay or collector may add the current year and apply its own time zone. That is exactly how a remote site's local time becomes a "UTC" timestamp in a central store. Prefer RFC 5424 with offsets end to end. RFC 5424 also defines a timeQuality structured data element with tzKnown, isSynced and syncAccuracy parameters, which lets a sender say whether it knows its zone and whether it is synchronised; parse and keep these where present.
Clock skew and time sync
Skew is the difference between a host's clock and true time at the moment it logged. Even small skew matters when ordering a logon on a client against the domain controller, or a proxy request against a web server. Treat unsynchronised hosts as a finding in their own right.
Source clock health checks:
- Linux with chrony: chronyc tracking shows System time (how far the system clock is from chronyd's NTP time), Last offset, RMS offset (long-term average), Leap status (Not synchronised indicates a problem) and Stratum. chronyc sources shows Reach as an octal register, where 377 means replies were received for the last eight polls. chronyd normally slews the clock gradually; a step, forced with makestep, can make logged times jump.
- Windows: w32tm /query /status /verbose shows last successful sync, stratum, source, phase offset and last error; w32tm /query /source confirms the expected source; w32tm /stripchart /computer:<target> charts offset against a reference such as the forest root PDC emulator, which is the authoritative time source for the domain hierarchy; w32tm /monitor analyses a domain or a list of hosts.
- Cloud services: AWS documents that its services generally use NTP to synchronise clocks and that CloudTrail eventTime comes from the endpoint host, so cloud events are usually a good reference clock when comparing against on-premises hosts.
Skew detection approach:
- Pick anchor events that are recorded on two systems: a Kerberos or NTLM logon on the client and the domain controller, a TLS connection in the proxy and the server, a file upload in the endpoint log and the cloud storage audit log.
- Compute the difference for several anchors over the period of interest and take the median per host pair.
- Check for steps: a sudden change in the difference indicates a clock correction or manual change, which may itself be evidence.
- Record the offset per host and period in the case notes and apply it as a documented correction in the analysis layer, never by editing raw data.
- Where offset cannot be measured, widen the uncertainty on that host's events and say so in the report.
Manipulating system time or file times is also an attacker technique. ATT&CK T1070.006 Timestomp covers altering file timestamps; see the Forensic Timeline Analysis Guide for indicators.
Normalising in the pipeline
NIST SP 800-92, the long-standing log management guide, is being replaced: SP 800-92 Rev. 1, "Cybersecurity Log Management Planning Guide", is an initial public draft dated 11 October 2023 and was still a draft when checked in November 2026. It is a planning playbook rather than a parsing standard, so the rules below come from the format specifications and investigation practice. See the NIST SP 800-92 Log Management Guide.
| Rule | What to do | Why |
|---|---|---|
| Keep the raw string | Store the original timestamp text unchanged alongside the parsed value | Lets you re-parse after fixing a zone assumption |
| Normalise to UTC | Convert event time to UTC in a dedicated field with consistent precision | Correlation across sources and regions |
| Record the offset or zone | Keep the original offset, and the assumed IANA zone where the source gave none | Reconstructs local time for user-facing questions (was this out of hours?) |
| Separate event and ingest time | Two fields, never collapsed | Measures pipeline delay and catches late or future-dated events |
| Per-source zone configuration | Set the expected zone for every source that logs local time; do not rely on the collector default | Prevents remote sites being shifted by the collector's zone |
| Flag, do not fix, anomalies | Tag events whose event time is far in the future, far behind ingest time, or in a DST gap | Surfaces skew and parsing errors without hiding evidence |
| Preserve precision | Keep sub-second digits as supplied; do not pad to a precision the source did not have | Avoids false ordering within the same second |
| Version the tz data | Record which tz release parsers use and update it | Rule changes alter historical conversions |
Monitor the pipeline itself: the distribution of ingest minus event time per source, the share of events with no offset, the share of events with event time ahead of ingest time, and the number of sources with no zone configured. For retention and central collection see the Log Management and Retention Guide.
Building investigation timelines
- Inventory sources and their clocks: list each source, its timestamp format, zone or offset, precision, and whether its clock was synchronised during the incident window.
- Normalise before merging: convert everything to UTC with documented per-host corrections, keeping the original values visible in the timeline.
- Respect resolution: where sources record whole seconds, do not infer order between events in different sources within the same second unless other evidence supports it.
- Use sequence where it exists: record numbers, USN sequence, transaction IDs and monotonic counters often order events more reliably than wall-clock time.
- Report in UTC with local reference: state the reporting zone at the top of the report and give local times only where they matter to the narrative, such as business hours.
- State uncertainty: give the measured skew and any ambiguous DST periods explicitly.
For agent and machine identity activity, where tool calls, token issuance and API logs come from different platforms, see Agent Activity Timeline Reconstruction from Tool Calls and Identity Logs.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev. 5 | AU-8 Time Stamps; AU-3 Content of Audit Records | Records carry time stamps that can be mapped to UTC |
| NIST SP 800-53 Rev. 5 | SC-45 System Time Synchronization; SC-45(1) Synchronization with Authoritative Time Source | Clock synchronisation across systems |
| NIST CSF 2.0 | PR.PS-04; DE.CM-09 | Log records generated for monitoring; monitoring of systems for adverse events |
| CIS Controls v8.1 | 8.4 Standardize Time Synchronization | At least two synchronised time sources across assets |
| ISO/IEC 27001:2022 Annex A | A.8.17 Clock synchronisation; A.8.15 Logging | Synchronised clocks and logs suitable for investigations |
| MITRE ATT&CK v20 | T1070.006 Timestomp | Attacker alteration of file timestamps |
Common failure patterns
- Collector zone applied to remote sources: a central collector parses offset-less local times from another region as its own zone, shifting a whole site by hours.
- Ingest time used as event time: late-delivered cloud or endpoint events appear after the containment actions they preceded.
- Epoch unit confusion: milliseconds parsed as seconds (dates tens of thousands of years ahead) or the reverse (dates in January 1970).
- Year rollover on legacy syslog: December events ingested in January are given the new year.
- Silent DST errors: events in the autumn repeated hour merged into one hour, or spring gap times accepted without a flag.
- Skew assumed to be zero: hosts outside the domain hierarchy, appliances and OT devices drift for months without anyone checking.
Practitioner checklist
- Configure every log source to emit UTC or an explicit offset; prefer RFC 5424 for syslog.
- Record the expected zone for every source that cannot emit an offset, in the collector configuration.
- Keep raw timestamp, UTC event time, original offset or zone, and ingest time as separate fields.
- Alert on sources whose event time runs ahead of ingest time or lags by more than an agreed threshold.
- Check clock health routinely with chronyc tracking and w32tm /query /status, and alert on unsynchronised hosts.
- Measure per-host skew from anchor events at the start of every investigation and record it.
- Flag events in DST transition hours and resolve them from other evidence.
- Keep tz data current on parsers and analysis hosts and record the release in use.
Standards and references
- IETF: RFC 3339 Date and Time on the Internet: Timestamps
- IETF: RFC 9557 Date and Time on the Internet: Timestamps with Additional Information
- IETF: RFC 5424 The Syslog Protocol
- NIST: SP 800-92 Rev. 1 Cybersecurity Log Management Planning Guide (initial public draft)
- IANA: Time Zone Database
- Microsoft Learn: FILETIME structure
- Microsoft Learn: Windows Time service tools and settings
- chrony: chronyc manual
Related NHI Mgmt Group resources: Forensic Timeline Analysis Guide · NTP Security Guide · NIST SP 800-92 Log Management Guide · CIS Control 8 Audit Log Management Guide