Simple log-parsing script