Corrected process_log_data