Interview Guides
Write a Python function that processes a list of log lines and returns a summary of error counts by service. Each log line has the format "timestamp|service|level|message". Count only lines whose level is exactly ERROR, ignore malformed lines, and return a dictionary mapping each service name to its number of errors.
1 <= len(logs) <= 10^41 to 500|