System Log Analyzer
System Log Analyzer: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Create a script /app/analyze.py that reads a system log file from stdin and writes a strict JSON report to stdout . The report must follow the exact schema below. Any deviation (wrong type…
The task
Create a script `/app/analyze.py` that reads a system log file from `stdin` and writes a **strict JSON report** to `stdout`. The report must follow the exact schema below. Any deviation (wrong type, missing key, extra key, wrong encoding/format, incorrect value) will cause the test to fail.
Part of ai-and/termgrade-environments.