Write a command-line tool /opt/logq that parses a custom log format and answers structured queries.
Write a command-line tool /opt/logq that parses a custom log format and answers structured queries.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input log format (received via stdin or file argument): Each line is a single log record. Fields are separated by…
The task
**Input log format** (received via stdin or file argument): Each line is a single log record. Fields are separated by the ASCII unit separator character (0x1F). The fields, in order, are: 1. `timestamp` — RFC 3339 with mandatory seconds and fractional seconds (exactly 3 decimal digits), always UTC ('Z' suffix, never…
Part of ai-and/termgrade-environments.