implement process_logs script