Given a large log file, write a script to efficiently parse, filter, and aggregate specific error patterns using minimal memory.