A Python script at /app/normalize logs.py is supposed to read a web server log file, normalize the…
A Python script at /app/normalize logs.py is supposed to read a web server log file, normalize the…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The script reads from a file path given as the first CLI argument. - Input file: one log entry per…
The task
**Input contract:** - The script reads from a file path given as the first CLI argument. - Input file: one log entry per line, format: `timestamp|ip|method|path|status|size` - Timestamp format in input: `DD/Mon/YYYY:HH:MM:SS ±HHMM` (e.g., `02/Jun/2023:14:30:45 +0530`) - IP: dotted decimal or IPv6 notation - Method:…
Part of ai-and/termgrade-environments.