arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.05254cs.SE
收藏

预处理即是你所需:通过通用预处理框架提升日志解析器的性能

Preprocessing is All You Need: Boosting the Performance of Log Parsers With a General Preprocessing Framework

Qiaolin Qin, Roozbeh Aghili, Heng Li, Ettore Merlo

AI总结:

本文针对基于统计的日志解析器性能瓶颈,基于 Loghub 研究现有预处理方法并提出通用预处理框架,显著提升 Drain 等解析器的多项指标。

摘要:

日志解析因其在识别动态变量和构建日志模板方面的重要性,长期以来一直是软件工程中的研究领域。先前工作提出了许多基于统计的日志解析器(例如 Drain),它们效率很高;但遗憾的是,与需要标注和更多计算资源的基于语义的日志解析器相比,它们遇到了解析性能瓶颈。同时,我们注意到以往研究主要关注解析,并常将预处理视为临时步骤(例如遮蔽数字)。然而,我们认为预处理和解析对于日志解析器识别动态变量都至关重要:对预处理缺乏理解可能会阻碍解析器的最佳使用和未来研究。因此,我们的工作基于常用日志解析基准 Loghub 研究了现有日志预处理方法。我们结合研究发现开发了一个通用预处理框架,并评估了其对现有解析器的影响。实验表明,该预处理框架显著提升了四个最先进的基于统计的解析器的性能。最佳基于统计的解析器 Drain 在全部四个解析指标上均获得改进(例如,模板准确率 F1 分数 FTA 提升了 108.9%)。与基于语义的解析器相比,它在分组准确率(GA)上实现了 28.3% 的提升,在 FGA 上实现了 38.1% 的提升,并在 FTA 上实现了 18.6% 的提升。我们的工作开创了日志预处理研究,并提供了一个可泛化的框架来增强日志解析。

英文摘要:

Log parsing has been a long-studied area in software engineering due to its importance in identifying dynamic variables and constructing log templates. Prior work has proposed many statistic-based log parsers (e.g., Drain), which are highly efficient; they, unfortunately, met the bottleneck of parsing performance in comparison to semantic-based log parsers, which require labeling and more computational resources. Meanwhile, we noticed that previous studies mainly focused on parsing and often treated preprocessing as an ad hoc step (e.g., masking numbers). However, we argue that both preprocessing and parsing are essential for log parsers to identify dynamic variables: the lack of understanding of preprocessing may hinder the optimal use of parsers and future research. Therefore, our work studied existing log preprocessing approaches based on Loghub, a popular log parsing benchmark. We developed a general preprocessing framework with our findings and evaluated its impact on existing parsers. Our experiments show that the preprocessing framework significantly boosts the performance of four state-of-the-art statistic-based parsers. Drain, the best statistic-based parser, obtained improvements across all four parsing metrics (e.g., F1 score of template accuracy, FTA, increased by 108.9%). Compared to semantic-based parsers, it achieved a 28.3% improvement in grouping accuracy (GA), 38.1% in FGA, and an 18.6% increase in FTA. Our work pioneers log preprocessing and provides a generalizable framework to enhance log parsing.

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

↑