Write a command-line tool /app/parse logs.py that reads a server log file and produces a summary CSV.
Write a command-line tool /app/parse logs.py that reads a server log file and produces a summary CSV.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - The log file is specified as the only argument: python /app/parse logs.py /path/to/log.txt - Each…
The task
**Input format:** - The log file is specified as the only argument: `python /app/parse_logs.py /path/to/log.txt` - Each line is a JSON object with keys: `timestamp` (string), `user_id` (string), `action` (string), `duration_ms` (integer or float), `status` (integer). - Lines may be malformed JSON, missing required…
Part of ai-and/termgrade-environments.