针对现有的程序日志解析技术准确率较低的问题,提出一种新的日志解析技术。该技术结合过程间和过程内程序分析,在程序的抽象语法树上进行过程间的方法调用分析,同时利用Java字符串分析技术进行过程内的数据流分析,将两者结合为程序源代码中的日志点构造自动机,并以自动机来匹配程序日志。实验结果表明,与现有的日志解析技术相比,该方法能够明显提高日志解析的精度。
Aiming at the problem of low precision in the state of progra~a log parsing technology, a new log parsing technology is proposed. This approach conducts interprocedural method analysis on the abstract syntax tree of the program, while applying Java string analyzer for intraprocedural data flow analysis. The work combines the results and builds an automaton for each log point to do the mapping against the console log. Experimental result shows that compared with existing technology, the new approach significantly improves the precision of log parsing.