Algorithm · Square · Medium
You are given a collection of raw server log lines. Each line carries four fields: a timestamp, a severity level, the name of the service that emitted it, and a free-text message. Build a small log-analysis tool that works through the following tasks: Parse every log line into a structured entry holding those four fields. For each service, print how many entries it produced at each severity level. Detect time windows in which the number of ERROR entries is too high, and…