Create a script /app/log analyzer.py that reads a system log file from stdin and outputs a single JSON…
Create a script /app/log analyzer.py that reads a system log file from stdin and outputs a single JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): A system log where each line is a log entry with fields separated by the pipe character …
The task
**Input format (stdin):** A system log where each line is a log entry with fields separated by the pipe character `|`. The fields in order are: - timestamp (ISO 8601 format, may include timezone offset as `+HH:MM`, `-HH:MM`, or `Z`) - level (one of: DEBUG, INFO, WARN, ERROR, CRITICAL) - component (non-empty string,…
Part of ai-and/termgrade-environments.