Extracting log file for a period of time.