Check log files for errors and create a report in JSON format