Analyze Logs with a Script and AI

Medium · AI-Assisted Coding · about 45 minutes

Asked at Meta, OpenAI, Databricks.

You're given a large web-server access log and an AI assistant. Write a script that reports the five endpoints with the worst p95 latency and the clients responsible for most 5xx errors, and explain one surprising finding. The log contains malformed lines, query strings and a few lines in an older format.

Related guides