Create a command-line tool /app/logquery that parses a custom log format and answers range queries. The tool…
Create a command-line tool /app/logquery that parses a custom log format and answers range queries. The tool…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log format: Each line is a JSON object with fields: - ts : ISO 8601 timestamp (UTC, always with 'Z'…
The task
**Log format:** Each line is a JSON object with fields: - `ts`: ISO 8601 timestamp (UTC, always with 'Z' suffix, fractional seconds optional, e.g., `2024-01-15T08:30:00.123Z` or `2024-01-15T08:30:00Z`) - `msg`: string (may contain any UTF-8 characters including escaped quotes and newlines as `\n`) - `level`: one of…
Part of ai-and/termgrade-environments.