How would you write a script to parse a large log file and extract specific error codes or patterns from Axon systems?