arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.12636cs.SE
收藏

SemParser:一个用于日志分析的语义解析器

SemParser: A Semantic Parser for Log Analysis

Yintong Huo, Yuxin Su, Cheryl Lee, Michael R. Lyu

摘要:

作为由软件自动生成的运行时信息,日志记录系统事件和活动及其时间戳。在获得更多的洞察软件的运行时状态,日志分析的基本步骤,称为日志解析,被用来提取结构化的模板和参数的半结构化的原始日志消息。然而,目前的日志解析器都是基于语法的,并把每个消息看作一个字符串,忽略了参数和模板中包含的语义信息。因此,我们提出了基于语义的解析器SemParser解锁的关键瓶颈挖掘日志消息的语义。它包含两个步骤,一个端到端的语义挖掘器和一个联合解析器。具体来说,第一步的目的是确定明确的语义内的一个单一的日志,和第二步是负责联合推断隐含的语义和计算结构输出的基础上的上下文知识库。为了分析我们的语义解析器的有效性,我们首先证明,它可以从日志消息中获得丰富的语义,从六个广泛应用的系统,平均F1得分为0.985。然后,我们进行了两个有代表性的下游任务,表明当前的下游模型在两个异常检测数据集和一个故障识别数据集上分别提高了1.2%-11.7%和8.65%的性能。我们相信这些发现提供了深入了解语义理解日志分析社区的日志消息。

英文摘要:

Logs, being run-time information automatically generated by software, record system events and activities with their timestamps. Before obtaining more insights into the run-time status of the software, a fundamental step of log analysis, called log parsing, is employed to extract structured templates and parameters from the semi-structured raw log messages. However, current log parsers are all syntax-based and regard each message as a character string, ignoring the semantic information included in parameters and templates. Thus, we propose the semantic-based parser SemParser to unlock the critical bottleneck of mining semantics from log messages. It contains two steps, an end-to-end semantic miner and a joint parser. Specifically, the first step aims to identify explicit semantics inside a single log, and the second step is responsible for jointly inferring implicit semantics and computing structural outputs based on the contextual knowledge base. To analyze the effectiveness of our semantic parser, we first demonstrate that it can derive rich semantics from log messages collected from six widely-applied systems with an average F1 score of 0.985. Then, we conduct two representative downstream tasks, showing that current downstream models improve their performance with appropriately extracted semantics by 1.2%-11.7% and 8.65% on two anomaly detection datasets and a failure identification dataset, respectively. We believe these findings provide insights into semantically understanding log messages for the log analysis community.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑