1. A method of efficiently mining a control flow graph from execution logs of a distributed system, said method comprising: utilizing at least one processor to execute computer code that performs the steps of: receiving a plurality of execution logs; generating, using at least one text clustering technique, at least two text clusters, from the plurality of execution logs; generating at least one approximate template based on the at least two text clusters; creating at least one refined template via refining the at least one approximate template using multimodal sequencing; creating the control flow graph, based on the at least one refined template; and detecting at least one anomaly in the control flow graph.