Check log files for specific errors and save results in JSON format