Check log files for errors and save results in JSON format