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-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input log format (received via stdin or file argument): Each line is…
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…