As security professionals, we are put into the position of log file analysis countless times. Sometimes our log sources have inconsistencies, and formats that cannot be easily split apart using a delimiter based approach. Additionally, we often need to count and/or categorize specific data. Join me on a journey through constructing a Python regular expression to analyze a log source, and categorize the data using a Python dictionary.