Write a Python script to parse a large, unstructured log file and extract specific metrics while managing memory efficiently.