Extract portions from long log files