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

即插即用于日志:一种免配置的基于统计的日志解析器

Plug it and Play on Logs: A Configuration-Free Statistic-Based Log Parser

Qiaolin Qin, Xingfang Wu, Heng Li, Ettore Merlo

AI总结:

本文提出一种免配置的基于统计的日志解析器 PIPLUP,通过消除常量标记位置预假设并采用数据不敏感参数,在不使用GPU和外部API的条件下,实现了优于现有统计方法和媲美无监督语义方法的准确性与泛化能力。

摘要:

日志解析是日志分析中的一项基本任务,已有许多工具被设计用于完成此项工作。现有的日志解析器可分为基于统计和基于语义的方法。与基于语义的解析器相比,现有的基于统计的解析器往往更高效、计算成本更低,并且由于本地部署而更具隐私保护性,但在准确性(例如,分组或解析准确性)和泛化性方面常常存在不足。因此,人们普遍认为基于统计的解析器无法像基于语义的解析器那样有效,因为后者可以利用预训练语言模型支持的外部知识。然而,我们的工作通过一种新颖的基于统计的解析器 PIPLUP 挑战了这一观念。PIPLUP 消除了日志分组中常量标记位置的预假设,并依赖数据不敏感的参数来克服泛化性挑战,从而在给定的日志文件上实现“即插即用”。根据我们在开源大型日志数据集上的实验,PIPLUP 凭借数据不敏感的默认参数集展现出了令人满意的准确性和泛化能力。PIPLUP 不仅优于最先进的基于统计的日志解析器 Drain 及其变体,而且与最好的无监督基于语义的日志解析器(即 LUNAR)相比,也取得了具有竞争力的性能。此外,PIPLUP 在没有 GPU 加速和外部 API 使用的情况下表现出低时间消耗;我们这种简单、高效且有效的方法使其在实际应用中更加实用,尤其是在成本和隐私是主要关注点的情况下。

英文摘要:

Log parsing is an essential task in log analysis, and many tools have been designed to accomplish it. Existing log parsers can be categorized into statistic-based and semantic-based approaches. In comparison to semantic-based parsers, existing statistic-based parsers tend to be more efficient, require lower computational costs, and be more privacy-preserving thanks to on-premise deployment, but often fall short in their accuracy (e.g., grouping or parsing accuracy) and generalizability. Therefore, it became a common belief that statistic-based parsers cannot be as effective as semantic-based parsers since the latter could take advantage of external knowledge supported by pretrained language models. Our work, however, challenges this belief with a novel statistic-based parser, PIPLUP. PIPLUP eliminates the pre-assumption of the position of constant tokens for log grouping and relies on data-insensitive parameters to overcome the generalizability challenge, allowing "plug and play" on given log files. According to our experiments on an open-sourced large log dataset, PIPLUP shows promising accuracy and generalizability with the data-insensitive default parameter set. PIPLUP not only outperforms the state-of-the-art statistic-based log parsers, Drain and its variants, but also obtains a competitive performance compared to the best unsupervised semantic-based log parser (i.e., LUNAR). Further, PIPLUP exhibits low time consumption without GPU acceleration and external API usage; our simple, efficient, and effective approach makes it more practical in real-world adoptions, especially when costs and privacy are of major concerns.

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

↑