1. A computer-implemented method for troubleshooting errors within computing tasks using models of log files, at least a portion of the method being performed by a computing device comprising at least one processor, the method comprising: identifying a plurality of log files generated during successful executions of a computing task; identifying an anomalous log file generated during an anomalous execution of the computing task; creating a model of a successful log file for the computing task by: identifying invariants that represent matching sequences found in a same location within at least two successful log files; storing each invariant in a node within the model; traversing, sequentially through the anomalous log file, matching sequences within the anomalous log file with nodes within the model until identifying at least one discrepancy between the anomalous log file and the model.