Python

Simple log file processing in Python

Simple log file processing in Python

The other day I found myself in the unfortunate position of needing to scan through raw server logs to try and gather some information around a rare issue. Opening these log files in a text editor and doing a quick text search wasn't a great option: the log files had millions of log lines, were 500MB+ in size, and the text editors just gave up trying to search, multi-select, and extract the lines I needed. I've recently gotten into Python (initially as a requirement for a project at work), and while I still have a lot to learn, I have...