← Questions
Parse and summarize HTTP access logs
0
I was asked this
No reports yet. Sign in to say where you were asked it.
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.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
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
