Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering

Previous Articles     Next Articles

High Precision Program Log Paring Technology Based on Static Analysis

FAN Jing, ZHANG Cheng   

  1. (School of Software, Shanghai Jiaotong University, Shanghai 200240, China)
  • Received:2012-11-07 Online:2013-10-15 Published:2013-10-14

基于静态分析的高精度程序日志解析技术

范 惊,章 程   

  1. (上海交通大学软件学院,上海 200240)
  • 作者简介:范 惊(1988-),男,硕士研究生,主研方向:程序分析;章 程,博士研究生
  • 基金资助:
    国家自然科学基金资助面上项目(60970009);国家自然科学基金资助重点项目(91118004)

Abstract: Aiming at the problem of low precision in the state of program 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.

Key words: console log, log parsing, static analysis, abstract syntax tree, string analysis, automaton

摘要: 针对现有的程序日志解析技术准确率较低的问题,提出一种新的日志解析技术。该技术结合过程间和过程内程序分析,在程序的抽象语法树上进行过程间的方法调用分析,同时利用Java字符串分析技术进行过程内的数据流分析,将两者结合为程序源代码中的日志点构造自动机,并以自动机来匹配程序日志。实验结果表明,与现有的日志解析技术相比,该方法能够明显提高日志解析的精度。

关键词: 控制台日志, 日志解析, 静态分析, 抽象语法树, 字符串分析, 自动机

CLC Number: