Task: Process Server Access Log to Aggregate Hourly Statistics
Task: Process Server Access Log to Aggregate Hourly Statistics: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). You must implement a command-line tool /root/process logs (written in Python) that reads a server access log file from stdin and writes a JSON report to…
The task
You must implement a command-line tool `/root/process_logs` (written in Python) that reads a server access log file from stdin and writes a JSON report to stdout. The tool must accept an optional `--timezone` argument (default: UTC).
Part of ai-and/termgrade-environments.