HF RL Explorer

Write a command-line tool log-report that reads one or more system log files and produces a strict JSON…

Write a command-line tool log-report that reads one or more system log files and produces a strict JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input log format: Each line is either empty (skip it) or a log entry with fields separated by a single space…

The task

Input log format: Each line is either empty (skip it) or a log entry with fields separated by a single space: `TIMESTAMP HOSTNAME SERVICE MESSAGE` - TIMESTAMP: ISO-8601 with seconds and a timezone offset (`2025-03-15T08:42:31+00:00` or `2025-03-15T08:42:31Z`). You must treat `Z` as `+00:00`. - HOSTNAME: non-empty…

Part of ai-and/termgrade-environments.