Write a Python program /app/log analyzer.py that reads a syslog-format file from stdin and outputs a single…
Write a Python program /app/log analyzer.py that reads a syslog-format file from stdin and outputs a single…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: One log entry per line (fields separated by spaces): TIMESTAMP HOST APP PID : MESSAGE -…
The task
**Input format:** One log entry per line (fields separated by spaces): ``` TIMESTAMP HOST APP[PID]: MESSAGE ``` - `TIMESTAMP` is ISO‑8601 with timezone, e.g. `2025-01-15T08:01:23+00:00` or `2025-01-15T08:01:23Z` or `2025-01-15T08:01:23.456+05:30`. Fractional seconds and timezone offset are optional; `Z` means UTC. -…
Part of ai-and/termgrade-environments.