Your question is Log Parsing for Top IPs. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Autodesk services need a compact way to identify clients generating unusually many failed requests. Given log lines from an Autodesk service, count requests with HTTP status codes from 400 through 599 and return the top 10 source IP addresses.
Each log line has this whitespace-separated format:
timestamp ip method path status
For example: 2026-08-29T10:15:00Z 192.0.2.10 GET /api/models 500
Return a list of [ip, failed_count] pairs ordered by descending failed-request count. If two IP addresses have the same count, order them lexicographically by IP address. Return at most 10 entries.
logs, a list of valid non-empty strings following the specified format.200 through 399.def top_failed_ips(logs):