Log Parser with Multi-Line Follow-up

Asked at Oracle · Coding Questions · Difficulty: Medium · Last asked Aug 6, 2025

Parse a stream of log lines of the form `<unix_timestamp> <LEVEL> <message>` into a structured format and validate well-formedness. The recurring follow-up extends each log entry to span multiple physical lines until the next timestamp-prefixed line starts a new entry.

Loading the problem…