Processes logfiles and performs certain actions