arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2308.07085cs.SE
收藏

Hue:一种用于混合日志的用户自适应解析器

Hue: A User-Adaptive Parser for Hybrid Logs

Junjielong Xu, Qiuai Fu, Zhouruixing Zhu, Yutong Cheng, Zhijing Li, Yuchi Ma, Pinjia He

AI总结:

本文定义混合日志解析问题,提出用户自适应解析器 Hue,通过通配符转换、行聚合、模式提取及合并-拒绝反馈机制,在混合与单行日志上均取得优异效果并已生产部署。

摘要:

日志解析从半结构化日志中提取日志模板并生成结构化日志,是自动化日志分析中首要且最关键的一步。尽管现有日志解析器已经取得不错的效果,但其在设计上存在两大局限。首先,它们并不原生支持由单行日志和多行日志(例如 Java Exception 和 Hadoop Counters)共同组成的混合日志。其次,它们在解析过程中难以整合领域知识,因此很难识别日志中的歧义 token。本文定义了一个新的研究问题——混合日志解析,将其作为传统日志解析任务的超集,并提出 Hue,这是首次以用户自适应方式进行混合日志解析的尝试。具体而言,Hue 使用 key casting 表将每条日志消息转换为特殊通配符序列,并通过行聚合和模式提取来确定日志类型。此外,Hue 能够通过一种新颖的合并-拒绝策略有效利用用户反馈,从而能够快速适应复杂且不断变化的日志模板。我们在三个混合日志数据集和十六个广泛使用的单行日志数据集(即 Loghub)上评估了 Hue。结果表明,Hue 在混合日志上取得了 0.845 的平均分组准确率,大幅优于现有解析器获得的最佳结果(平均 0.563)。Hue 在单行日志数据集上也展现出 SOTA 性能。此外,Hue 已成功部署在真实生产环境中,用于日常混合日志解析。

英文摘要:

Log parsing, which extracts log templates from semi-structured logs and produces structured logs, is the first and the most critical step in automated log analysis. While existing log parsers have achieved decent results, they suffer from two major limitations by design. First, they do not natively support hybrid logs that consist of both single-line logs and multi-line logs (\eg Java Exception and Hadoop Counters). Second, they fall short in integrating domain knowledge in parsing, making it hard to identify ambiguous tokens in logs. This paper defines a new research problem, \textit{hybrid log parsing}, as a superset of traditional log parsing tasks, and proposes \textit{Hue}, the first attempt for hybrid log parsing via a user-adaptive manner. Specifically, Hue converts each log message to a sequence of special wildcards using a key casting table and determines the log types via line aggregating and pattern extracting. In addition, Hue can effectively utilize user feedback via a novel merge-reject strategy, making it possible to quickly adapt to complex and changing log templates. We evaluated Hue on three hybrid log datasets and sixteen widely-used single-line log datasets (\ie Loghub). The results show that Hue achieves an average grouping accuracy of 0.845 on hybrid logs, which largely outperforms the best results (0.563 on average) obtained by existing parsers. Hue also exhibits SOTA performance on single-line log datasets. Furthermore, Hue has been successfully deployed in a real production environment for daily hybrid log parsing.

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

↑