Reading Application Log Output
5 exercises — read a realistic structured log from an order service with timestamps, log levels, a correlation_id, and a stack trace. Extract meaning from each element and understand how logs tell a story.
Reading structured application logs
- Timestamp → when it happened; millisecond precision matters for sequencing
- Log level → INFO = normal, WARN = unusual but not broken, ERROR = failure, FATAL = crash
- Service name → which microservice emitted this line
- correlation_id → use this to filter: one ID = one request = one story
- Stack trace → read bottom-to-top for context; first line (top) = crash site with line number
0 / 5 completed
1 / 5
Order Service Application Log
{ex.passage} What information can you extract from the log timestamp "2026-05-14T09:14:02.341Z"?
ISO 8601 timestamp — date, time to millisecond precision, and UTC timezone:
Breaking down
Modern applications process hundreds of requests per second. Without milliseconds, two log lines from the same second would be indistinguishable in ordering. The 47ms gap between lines 1 and 2 (
Why UTC matters:
Servers across different timezones all log in UTC. Without this, comparing logs from a London server and a New York server would require timezone arithmetic. UTC eliminates that ambiguity.
Log reading vocabulary:
Breaking down
2026-05-14T09:14:02.341Z:2026-05-14→ year-month-day (ISO 8601 date format)T→ separator between date and time09:14:02→ hours:minutes:seconds (24-hour clock).341→ 341 millisecondsZ→ "Zulu time" = UTC (no timezone offset)
Modern applications process hundreds of requests per second. Without milliseconds, two log lines from the same second would be indistinguishable in ordering. The 47ms gap between lines 1 and 2 (
09:14:02.341 → 09:14:02.388) tells us the inventory check took 47ms — precise and actionable.Why UTC matters:
Servers across different timezones all log in UTC. Without this, comparing logs from a London server and a New York server would require timezone arithmetic. UTC eliminates that ambiguity.
Log reading vocabulary:
- ISO 8601 → the international standard for date/time string format
- UTC (Coordinated Universal Time) → the global reference timezone; "Z" suffix in ISO 8601 means UTC
- log timestamp → when the line was written to the log, not when the user action started