the code works for one sample log file