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

自监督日志解析

Self-Supervised Log Parsing

TU Berlin(柏林工业大学);University of Coimbra(科英布拉大学)

Sasho Nedelkoski, Jasmin Bogatinovski, Alexander Acker, Jorge Cardoso, Odej Kao

摘要:

在软件系统的开发和维护过程中,广泛使用XML。它们收集运行时事件,并允许跟踪代码执行,从而支持各种关键任务,如故障排除和故障检测。然而,大型软件系统会产生大量的半结构化日志记录,这对自动化分析提出了重大挑战。将具有自由格式文本日志消息的半结构化记录解析为结构化模板是实现进一步分析的第一步也是关键的一步。现有的方法依赖于特定于日志的语法或手动规则提取。它们通常专门用于解析某些日志类型,因此限制了性能得分和泛化。我们提出了一种新的解析技术称为NuLog,利用自监督学习模型,并制定了作为屏蔽语言建模(MLM)的解析任务。在解析过程中,模型以向量嵌入的形式从日志中提取摘要。这允许MLM作为预训练与下游异常检测任务的耦合。我们评估了NuLog在10个真实日志数据集上的解析性能,并将结果与12种解析技术进行了比较。结果表明,NuLog在解析准确率方面优于现有方法,平均为99%,并实现了与地面真实模板的最小编辑距离。此外,两个案例研究进行了证明的能力,基于日志的异常检测方法在监督和无监督的情况下。结果表明,NuLog可以成功地用于支持故障排除任务。该实现可在https://github.com/nulog/nulog上获得。

英文摘要:

Logs are extensively used during the development and maintenance of software systems. They collect runtime events and allow tracking of code execution, which enables a variety of critical tasks such as troubleshooting and fault detection. However, large-scale software systems generate massive volumes of semi-structured log records, posing a major challenge for automated analysis. Parsing semi-structured records with free-form text log messages into structured templates is the first and crucial step that enables further analysis. Existing approaches rely on log-specific heuristics or manual rule extraction. These are often specialized in parsing certain log types, and thus, limit performance scores and generalization. We propose a novel parsing technique called NuLog that utilizes a self-supervised learning model and formulates the parsing task as masked language modeling (MLM). In the process of parsing, the model extracts summarizations from the logs in the form of a vector embedding. This allows the coupling of the MLM as pre-training with a downstream anomaly detection task. We evaluate the parsing performance of NuLog on 10 real-world log datasets and compare the results with 12 parsing techniques. The results show that NuLog outperforms existing methods in parsing accuracy with an average of 99% and achieves the lowest edit distance to the ground truth templates. Additionally, two case studies are conducted to demonstrate the ability of the approach for log-based anomaly detection in both supervised and unsupervised scenario. The results show that NuLog can be successfully used to support troubleshooting tasks. The implementation is available at https://github.com/nulog/nulog.

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

↑