Write a command-line tool querylog that reads a custom log file and produces summary statistics in a…
Write a command-line tool querylog that reads a custom log file and produces summary statistics in a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log file format: - One record per line, encoded in UTF-8. - Fields within a record are separated by the pipe…
The task
**Log file format:** - One record per line, encoded in UTF-8. - Fields within a record are separated by the pipe character `|` (0x7C). - A record has exactly 6 fields: `timestamp|level|user_id|duration_ms|endpoint|status_code` - `timestamp` is ISO-8601 with mandatory timezone offset (e.g.,…
Part of ai-and/termgrade-environments.