arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 2108.01955cs.SEcs.AI
收藏

无需日志解析的基于日志的异常检测

Log-based Anomaly Detection Without Log Parsing

The University of Newcastle(纽卡斯尔大学)

Van-Hoang Le, Hongyu Zhang

摘要:

软件系统经常在系统日志中记录重要的运行时信息以用于故障排除目的。已经有许多研究使用日志数据来构建用于检测系统异常的机器学习模型。通过我们的实证研究,我们发现,现有的基于日志的异常检测方法显着影响日志解析错误,1)OOV(词汇表外)的话,和2)语义误解。日志解析错误会导致异常检测的重要信息丢失。为了解决现有方法的局限性,我们提出了NeuralLog,一种新的基于日志的异常检测方法,不需要日志解析。NeuralLog提取原始日志消息的语义含义,并将其表示为语义向量。然后,这些表示向量用于通过基于transformer的分类模型来检测异常,该模型可以从日志序列中捕获上下文信息。实验结果表明,该方法能够有效地理解日志消息的语义,实现准确的异常检测。总体而言,NeuralLog在四个公共数据集上的F1得分大于0.95,优于现有方法。

英文摘要:

Software systems often record important runtime information in system logs for troubleshooting purposes. There have been many studies that use log data to construct machine learning models for detecting system anomalies. Through our empirical study, we find that existing log-based anomaly detection approaches are significantly affected by log parsing errors that are introduced by 1) OOV (out-of-vocabulary) words, and 2) semantic misunderstandings. The log parsing errors could cause the loss of important information for anomaly detection. To address the limitations of existing methods, we propose NeuralLog, a novel log-based anomaly detection approach that does not require log parsing. NeuralLog extracts the semantic meaning of raw log messages and represents them as semantic vectors. These representation vectors are then used to detect anomalies through a Transformer-based classification model, which can capture the contextual information from log sequences. Our experimental results show that the proposed approach can effectively understand the semantic meaning of log messages and achieve accurate anomaly detection results. Overall, NeuralLog achieves F1-scores greater than 0.95 on four public datasets, outperforming the existing approaches.

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

↑