Developer and Text Tools

Lining Up Logs From Many Servers: Normalising Timestamps

How to merge logs with mixed timestamp formats and time zones into one timeline, handle syslog and epoch values, and find the gap that explains an outage.

Saizul Amin
Saizul Amin3 Nov 2026 · 4 min read
Lining Up Logs From Many Servers: Normalising Timestamps

Lining Up Logs From Many Servers: Normalising Timestamps

During an incident review someone always asks: what happened first? Answering it means putting lines from the load balancer, the application, the database and the message queue on a single clock. In a perfect world every component would log RFC 3339 timestamps in UTC. In the real world they do not. This guide shows a quick, reliable way to build that single timeline with the free Log Timestamp Normalizer.

The usual mix

A typical small stack produces at least four styles:

  • Application logs in ISO 8601, sometimes with Z, sometimes with a local offset.
  • Web server access logs in the common log format, day/month/year with a colon before the time.
  • Syslog lines with a month name and day but no year and no zone.
  • Metrics or tracing systems that write epoch numbers in milliseconds, microseconds or nanoseconds.

Add a Windows tool that writes 03/11/2026 and you also have to know whether that means 3 November or 11 March.

Step 1: tell the tool what it cannot know

Some facts are not in the text. Syslog has no year, so you supply it. Lines without an offset were written in some local zone, so you choose that source zone by its IANA name, such as Europe/Berlin or Asia/Dhaka. Numeric dates need a day-first or month-first rule. These three settings sit in one card and apply to every log you load.

Using IANA names matters because they carry daylight-saving history. A fixed offset like +01:00 is right for half of the year in Berlin and wrong for the other half. The normalizer looks up the correct offset for each individual timestamp.

Step 2: load every source

Paste text or open several files at once. Each log gets a tab with its name, which later becomes the tag on every line. The original text stays editable, so you can trim a huge file down to the incident window before merging.

Step 3: choose one output

UTC with milliseconds is the best default for incident work. It sorts correctly as plain text, has no daylight-saving ambiguity and is what most observability tools use internally. If your team thinks in local time, convert to that zone instead; the offset is kept in the output so nobody has to guess. You can replace the original timestamps or put the normalised one in front and keep the original for auditing.

Step 4: merge and read

Tick sort and every log becomes one timeline. Lines without a timestamp, such as the rows of a stack trace, stay glued to the entry above them, so exceptions remain readable after sorting. The source tag at the start of each line shows where it came from.

Now read top to bottom. Typical discoveries are an upstream timeout logged by the proxy two seconds before the application noticed anything, a retry storm that started on one host, or a metrics agent whose clock is wrong. That last one is common: if one source is consistently minutes or even a year apart from the others, the problem is the host clock or a wrong year setting, not the application.

Using the gaps list

The table view lists every entry with its detected format and converted time, and exports CSV for a spreadsheet. Below it, the largest gaps between consecutive entries are listed. A busy service that suddenly logs nothing for 40 seconds has probably frozen, lost its connection or been paused by the garbage collector, and the gap pinpoints when.

Epoch values without surprises

Plain numbers are tricky because IDs and counters are also numbers. The normalizer only treats 10, 13, 16 or 19 digit numbers as epochs, and only when the result lands between 1990 and 2100. If your logs contain long numeric IDs that still fool it, switch epoch detection off.

Daylight-saving edge cases

When clocks spring forward, local times inside the skipped hour do not exist; the tool moves them forward by the gap. When clocks fall back, an hour repeats, and a local timestamp without an offset is genuinely ambiguous. The normalizer picks the first occurrence. If an incident happened during that hour, rely on sources that log offsets or UTC.

Good habits for next time

Normalising after the fact works, but prevention is better. Configure services to log in UTC with an explicit offset and at least millisecond precision, include a request ID that travels across services, and keep host clocks synchronised with NTP. Then the next incident review starts with the timeline instead of an hour of time-zone arithmetic.

Privacy note

Logs often contain IP addresses, user IDs and tokens. The normalizer runs entirely in your browser and never uploads the text, but it keeps a draft on your device so a reload does not lose work. Clear it when you are done if the logs are sensitive.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages