log file cleaning script