Create a command-line tool /root/query logs that reads a custom log file and answers queries about it.
Create a command-line tool /root/query logs that reads a custom log file and answers queries about it.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log format (UTF-8): Each line is a log entry with fields separated by the character: timestamp event id severity…
The task
**Log format (UTF-8):** Each line is a log entry with fields separated by the `|` character: ``` timestamp|event_id|severity|source_ip|message ``` - `timestamp`: ISO 8601 format with timezone offset (e.g., `2024-01-15T08:30:00+01:00` or `2024-01-15T08:30:00Z`). May have fractional seconds (e.g.,…
Part of ai-and/termgrade-environments.