Write a program /app/log analyzer (Python or Bash, your choice) that reads a system log file from stdin and…
Write a program /app/log analyzer (Python or Bash, your choice) that reads a system log file from stdin and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: Each line is one log entry with the structure: <TIMESTAMP <LEVEL <IP <MESSAGE Fields are…
The task
**Input format:** Each line is one log entry with the structure: `<TIMESTAMP> <LEVEL> <IP> <MESSAGE>` Fields are separated by exactly ONE space. Lines may have trailing spaces or leading spaces (trim them). Empty lines (after trimming) must be skipped.
Part of ai-and/termgrade-environments.