HF RL Explorer

Write a command-line tool process logs that reads an Apache-style access log file, extracts and transforms…

Write a command-line tool process logs that reads an Apache-style access log file, extracts and transforms…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): Lines in combined Apache log format: "%h %l %u %t \"%r\" % s %b \"%{Referer}i\"…

The task

**Input format (stdin):** Lines in combined Apache log format: ``` "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" ``` - `%t` is `[DD/Mon/YYYY:HH:MM:SS TZ]` where TZ is ±HHMM (e.g., +0530, -0800) and month is abbreviated English name (Jan, Feb, ..., Dec). - `%r` is `METHOD PATH PROTOCOL` (e.g., `GET…

Part of ai-and/termgrade-environments.