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

软件日志上无解析器与无监督异常检测方法的速度与性能

Speed and Performance of Parserless and Unsupervised Anomaly Detection Methods on Software Logs

Jesse Nyyssölä, Mika Mäntylä

AI总结:

本研究比较了四种无监督异常检测方法在软件日志上的性能,发现隔离森林与事件表示在未过滤数据上最优(AUC-ROC 0.829),而OOV检测器与三元组表示在仅正常数据上最佳(0.846),并给出了速度最优选择。

摘要:

软件日志分析可能既费力又耗时。在工业环境中,时间和标记数据通常缺乏。本文研究了用于异常检测的无监督且时间高效的方法。我们研究了两个自定义模型和两个既有模型。自定义模型包括:一个OOV(词汇表外)检测器,它统计测试数据中未出现在训练数据中的词项,以及稀有度模型(RM),该模型根据词项的不频繁程度计算其稀有度得分。既有模型为KMeans和隔离森林。这些模型在四个公开数据集(BGL、Thunderbird、Hadoop、HDFS)上进行了评估,并使用了三种不同的日志消息表示技术(词、字符三元组、解析事件)。对于训练,我们同时使用了仅含正常数据(不含任何异常)和未过滤数据(包含正常和异常实例)。由于设置阈值的挑战,我们主要使用AUC-ROC指标进行评估,但也包含F1分数以提供进一步见解。根据具体需求,建议采用不同的配置。当训练数据未过滤(包含正常和异常实例)时,最有效的组合是隔离森林与事件表示,其AUC-ROC达到0.829。如果能够创建仅含正常的训练数据集,将词汇表外(OOV)检测器与三元组表示相结合,可获得最高的AUC-ROC,为0.846。在速度考虑方面,OOV检测器最适合过滤数据,而稀有度模型是未过滤数据的最佳选择。

英文摘要:

Software log analysis can be laborious and time consuming. Time and labeled data are usually lacking in industrial settings. This paper studies unsupervised and time efficient methods for anomaly detection. We study two custom and two established models. The custom models are: an OOV (Out-Of-Vocabulary) detector, which counts the terms in the test data that are not present in the training data, and the Rarity Model (RM), which calculates a rarity score for terms based on their infrequency. The established models are KMeans and Isolation Forest. The models are evaluated on four public datasets (BGL, Thunderbird, Hadoop, HDFS) with three different representation techniques for the log messages (Words, character Trigrams, Parsed events). For training, we used both normal-only data, which is free of all anomalies, and unfiltered data, which contains both normal and anomalous instances. We used primarily the AUC-ROC metric for evaluation due to challenges in setting a threshold but we also include F1-scores for further insight. Different configurations are advised based on specific requirements. When training data is unfiltered, includes both normal and anomalous instances, the most effective combination is the Isolation Forest with event representation, achieving an AUC-ROC of 0.829. If it's possible to create a normal-only training dataset, combining the Out-Of-Vocabulary (OOV) detector with trigram representation yields the highest AUC-ROC of 0.846. For speed considerations, the OOV detector is optimal for filtered data, while the Rarity Model is the best choice for unfiltered data.

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

↑