log_analysis script