← Questions

Parse and summarize HTTP access logs

0
AppleCodingLast asked May 2026

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding