HF RL Explorer

Create a command-line tool /app/logq that filters multi-line log records by a time window and an optional…

Create a command-line tool /app/logq that filters multi-line log records by a time window and an optional…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: The log file contains records separated by --- lines. Each record starts with a line…

The task

**Input file format:** The log file contains records separated by `---` lines. Each record starts with a line containing exactly 5 pipe-separated fields: `TIMESTAMP|LEVEL|COMPONENT|PID|THREAD` Followed by zero or more message lines (any text, possibly multi-line), then terminated by a `---` line on its own.

Part of ai-and/termgrade-environments.