arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.08736cs.SEcs.LG
收藏

面向日志异常检测的日志表示有效性研究

On the Effectiveness of Log Representation for Log-based Anomaly Detection

Polytechnique Montreal(蒙特利尔理工学院)

Xingfang Wu, Heng Li, Foutse Khomh

AI总结:

本文系统比较了六种日志表示技术在四个公开日志数据集和七种机器学习模型上的异常检测效果,并分析了日志解析与特征聚合的影响,为自动化日志分析工作流中的表示技术选择提供了实证指导。

摘要:

日志是人们了解软件系统运行状态的重要信息来源。由于现代软件架构和维护方法的不断演进,越来越多的研究工作致力于自动化日志分析。特别是机器学习(ML)已被广泛应用于日志分析任务中。在基于机器学习的日志分析任务中,将文本日志数据转换为数值特征向量是一个关键且不可或缺的步骤。然而,使用不同的日志表示技术对下游模型性能的影响尚不明确,这限制了研究人员和从业者在自动化日志分析工作流中选择最优日志表示技术的机会。因此,本文对以往日志分析研究中常用的日志表示技术进行了调查和比较。具体而言,我们选取了六种日志表示技术,并在基于日志的异常检测场景下,使用七种机器学习模型和四个公开日志数据集(即 HDFS、BGL、Spirit 和 Thunderbird)对它们进行了评估。我们还考察了日志解析过程以及不同的特征聚合方法与日志表示技术结合使用时的影响。通过实验,我们为未来的研究人员和开发者在设计自动化日志分析工作流时提供了一些启发式指导原则。我们相信,我们对日志表示技术的全面比较能够帮助研究人员和从业者更好地理解不同日志表示技术的特点,并为他们选择最适合其基于机器学习的日志分析工作流的技术提供指导。

英文摘要:

Logs are an essential source of information for people to understand the running status of a software system. Due to the evolving modern software architecture and maintenance methods, more research efforts have been devoted to automated log analysis. In particular, machine learning (ML) has been widely used in log analysis tasks. In ML-based log analysis tasks, converting textual log data into numerical feature vectors is a critical and indispensable step. However, the impact of using different log representation techniques on the performance of the downstream models is not clear, which limits researchers and practitioners' opportunities of choosing the optimal log representation techniques in their automated log analysis workflows. Therefore, this work investigates and compares the commonly adopted log representation techniques from previous log analysis research. Particularly, we select six log representation techniques and evaluate them with seven ML models and four public log datasets (i.e., HDFS, BGL, Spirit and Thunderbird) in the context of log-based anomaly detection. We also examine the impacts of the log parsing process and the different feature aggregation approaches when they are employed with log representation techniques. From the experiments, we provide some heuristic guidelines for future researchers and developers to follow when designing an automated log analysis workflow. We believe our comprehensive comparison of log representation techniques can help researchers and practitioners better understand the characteristics of different log representation techniques and provide them with guidance for selecting the most suitable ones for their ML-based log analysis workflow.

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

↑