add log analysis for prepost script
override the log file for pre/post script