Back to problems

Validate and Aggregate HTTP Access Logs

Algorithm · Apple · Medium

Access Log Metrics Medium · Topics · Company Tags · Hints You are given a list of strings, each representing a single line from an HTTP access log. Every log line should follow the pattern , where the four fields are separated by exactly one space. A log line is considered valid when: The ipv4 field is a valid IPv4 address consisting of four decimal octets, each satisfying $$0 \le octet \le 255$$, and no octet has a leading zero unless the octet is exactly 0. The timestamp…

Checking your access…