[论文解读] Tools and Benchmarks for Automated Log Parsing
本文对13种自动化日志解析工具在16个多样化日志数据集上进行了全面评估,提出了一个公开可用的基准测试套件和工具包,以标准化性能评估。报告了准确率、鲁棒性和效率指标,表明数据驱动型解析器在处理复杂、可变长度日志消息和动态参数方面显著优于基于规则的方法。
Logs are imperative in the development and maintenance process of many software systems. They record detailed runtime information that allows developers and support engineers to monitor their systems and dissect anomalous behaviors and errors. The increasing scale and complexity of modern software systems, however, make the volume of logs explodes. In many cases, the traditional way of manual log inspection becomes impractical. Many recent studies, as well as industrial tools, resort to powerful text search and machine learning-based analytics solutions. Due to the unstructured nature of logs, a first crucial step is to parse log messages into structured data for subsequent analysis. In recent years, automated log parsing has been widely studied in both academia and industry, producing a series of log parsers by different techniques. To better understand the characteristics of these log parsers, in this paper, we present a comprehensive evaluation study on automated log parsing and further release the tools and benchmarks for easy reuse. More specifically, we evaluate 13 log parsers on a total of 16 log datasets spanning distributed systems, supercomputers, operating systems, mobile systems, server applications, and standalone software. We report the benchmarking results in terms of accuracy, robustness, and efficiency, which are of practical importance when deploying automated log parsing in production. We also share the success stories and lessons learned in an industrial application at Huawei. We believe that our work could serve as the basis and provide valuable guidance to future research and deployment of automated log parsing.
研究动机与目标
- 为学术界和工业界中自动化日志解析缺乏标准化基准和可重用工具的问题提供解决方案。
- 在包括分布式系统、操作系统和移动应用在内的多样化软件系统中,评估13种最先进的日志解析工具的性能。
- 识别自动化日志解析中的关键挑战,例如处理可变长度日志消息以及区分状态值与参数。
- 提供在华为真实工业环境中部署自动化日志解析的实际见解和成功案例。
- 通过发布开源工具和基准数据集,促进可复现研究,以支持未来开发与评估。
提出的方法
- 实现了13种自动化日志解析工具的评估,包括数据驱动方法如Drain、Spell、LogCluster和IPLoM。
- 从多样化领域收集并整理了16个真实世界日志数据集:分布式系统、超级计算机、操作系统、移动系统和服务器应用。
- 设计了标准化的评估框架,衡量准确率(F1-score)、鲁棒性(对噪声和模板变化的容忍度)以及效率(处理时间和内存使用量)。
- 引入了一条新的基准测试流程,以在真实场景下评估解析器性能,包括可变长度日志消息和动态参数模式。
- 结合华为的工业部署经验,验证了工具在生产环境中的有效性。
- 公开了所有评估过的解析器及完整基准测试套件的开源实现,以确保可复现性和社区复用。
实验结果
研究问题
- RQ1在不同日志数据集中,各类自动化日志解析工具在准确率、鲁棒性和效率方面如何比较?
- RQ2现有日志解析器在处理复杂日志模式(如可变长度消息或状态依赖值)时,其主要失效模式是什么?
- RQ3在真实工业环境中,数据驱动型日志解析方法在多大程度上优于基于规则或基于源码的方法?
- RQ4如何使自动化日志解析对噪声、模板变化和动态参数结构更具鲁棒性?
- RQ5在华为这类大规模工业环境的生产系统中部署自动化日志解析时,面临哪些实际挑战及经验教训?
主要发现
- 数据驱动型日志解析器如Drain和Spell在大多数数据集上取得了最高的F1得分(平均超过95%),显著优于基于规则的方法。
- 依赖频繁模式挖掘(如LogCluster)和迭代划分(如IPLoM)的解析器表现良好,但在大规模日志上效率较低。
- 大多数解析器在处理可变长度日志消息时表现不佳,尤其是当日志包含列表或动态内容时,导致模板碎片化和准确率下降。
- 大多数工具未能正确区分状态值(如"ERROR"与"OK")和普通参数,导致异常检测场景下的误分类。
- 当前工具中普遍缺乏自动参数调优机制,需依赖手动配置,限制了可扩展性和可复现性。
- 华为的工业部署表明,自动化日志解析使手动日志分析时间减少了70%以上,并加快了故障诊断速度,验证了其在实际场景中的适用性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。