EvLog:在软件演化过程中识别异常日志
EvLog: Identifying Anomalous Logs over Software Evolution
AI总结:
针对软件演化导致日志解析、事件变化和序列不稳定的问题,本文提出无监督方法 EvLog,通过免解析多层次表示与注意力异常判别器定位异常日志,并在版本内、跨版本设置中取得优异效果。
摘要:
软件日志记录系统活动,帮助维护人员识别故障的根本原因并及时采取缓解措施。然而,维护人员需要检查每日产生的大量日志,以找出揭示故障细节、供进一步诊断的异常日志。因此,如何自动将这些异常日志与正常日志区分开来成为一个关键问题。现有方法减轻了软件维护人员的负担,但它们建立在一个不当且关键的假设之上:软件中的日志语句保持不变。尽管软件持续演化,我们的实证研究发现,演化中的软件带来三类挑战:日志解析错误、演化的日志事件以及不稳定的日志序列。本文提出一种名为 Evolving Log analyzer(EvLog)的新型无监督方法以缓解这些挑战。我们首先构建一个多层次表示提取器,在不进行解析的情况下处理日志,以避免解析器引入错误。多层次表示保留日志的基本语义,同时忽略演化事件中不重要的变化。随后,EvLog 实现了一个带注意力机制的异常判别器,用于识别异常日志并规避不稳定序列带来的问题。EvLog 已在两个真实系统演化日志数据集上证明有效性:在版本内设置和跨版本设置中,平均 F1 分数分别为 0.955 和 0.847,大幅优于其他最先进方法。据我们所知,这是首个在软件演化过程中定位异常日志的研究。我们相信本工作为日志分析社区揭示了软件演化的影响及相应解决方案的新思路。
英文摘要:
Software logs record system activities, aiding maintainers in identifying the underlying causes for failures and enabling prompt mitigation actions. However, maintainers need to inspect a large volume of daily logs to identify the anomalous logs that reveal failure details for further diagnosis. Thus, how to automatically distinguish these anomalous logs from normal logs becomes a critical problem. Existing approaches alleviate the burden on software maintainers, but they are built upon an improper yet critical assumption: logging statements in the software remain unchanged. While software keeps evolving, our empirical study finds that evolving software brings three challenges: log parsing errors, evolving log events, and unstable log sequences. In this paper, we propose a novel unsupervised approach named Evolving Log analyzer (EvLog) to mitigate these challenges. We first build a multi-level representation extractor to process logs without parsing to prevent errors from the parser. The multi-level representations preserve the essential semantics of logs while leaving out insignificant changes in evolving events. EvLog then implements an anomaly discriminator with an attention mechanism to identify the anomalous logs and avoid the issue brought by the unstable sequence. EvLog has shown effectiveness in two real-world system evolution log datasets with an average F1 score of 0.955 and 0.847 in the intra-version setting and inter-version setting, respectively, which outperforms other state-of-the-art approaches by a wide margin. To our best knowledge, this is the first study on localizing anomalous logs over software evolution. We believe our work sheds new light on the impact of software evolution with the corresponding solutions for the log analysis community.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。