Parse and summarize HTTP access logs

0
Remix

You get log lines, each meant to hold an IP address, a timestamp, a URL or API path and a status code. Parse each line, decide whether it is valid, and report the total number of requests, how many returned 4xx and 5xx errors, and the failure percentage. Say how you treat malformed lines.

AppleTechnical phone screenLast asked May 2026
No answer yet. Write the first one; the best answer gets endorsed.