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

HELP:基于分层嵌入的日志解析

HELP: Hierarchical Embeddings-based Log Parsing

Iudex AI(艾欧德克斯人工智能公司);Harvey Mudd College(哈维穆德学院)

Andy Xu, Arno Gau

AI总结:

针对现有日志解析器泛化差、实时性不足、易受日志漂移影响的问题,提出基于分层嵌入的在线语义日志解析器HELP,通过分层嵌入降本、迭代重平衡抗漂移,在14个公开数据集和生产环境中均表现出更优的性能与实用性。

摘要:

日志是软件维护与故障诊断的第一手信息来源。日志解析将半结构化日志消息转换为结构化模板,是异常检测、故障排查、根因分析等自动化日志分析任务的前提。然而现有日志解析器在实际系统中效果不佳,主要有三点原因:其一,传统基于启发式规则的解析器需要手工设计的特征与领域知识,难以大规模泛化;其二,现有基于大语言模型的解析器依赖周期性离线处理,限制了其在实时场景中的效用;其三,现有在线解析算法易受日志漂移影响,即日志的细微变化会产生误报,掩盖真实异常。\n为应对这些挑战,我们提出HELP——一种基于分层嵌入的日志解析器。HELP是首个利用大语言模型实现高性能、低成本日志解析的在线语义解析器。我们通过一种新颖的分层嵌入模块实现这一目标:该模块微调文本嵌入模型,在解析前对日志进行聚类,将查询成本降低多个数量级。为对抗日志漂移,我们还开发了迭代重平衡模块,可周期性更新现有日志分组。\n我们在14个公开大规模数据集上对HELP进行了全面评估,结果表明HELP的F1加权分组与解析准确率显著高于当前最先进的在线日志解析器。我们还将HELP部署到Iudex的生产可观测性平台中,验证了其在生产环境中的实用性。结果表明,HELP在高吞吐量的真实日志解析场景中兼具有效性与高效性。

英文摘要:

Logs are a first-hand source of information for software maintenance and failure diagnosis. Log parsing, which converts semi-structured log messages into structured templates, is a prerequisite for automated log analysis tasks such as anomaly detection, troubleshooting, and root cause analysis. However, existing log parsers fail in real-world systems for three main reasons. First, traditional heuristics-based parsers require handcrafted features and domain knowledge, which are difficult to generalize at scale. Second, existing large language model-based parsers rely on periodic offline processing, limiting their effectiveness in real-time use cases. Third, existing online parsing algorithms are susceptible to log drift, where slight log changes create false positives that drown out real anomalies. To address these challenges, we propose HELP, a Hierarchical Embeddings-based Log Parser. HELP is the first online semantic-based parser to leverage LLMs for performant and cost-effective log parsing. We achieve this through a novel hierarchical embeddings module, which fine-tunes a text embedding model to cluster logs before parsing, reducing querying costs by multiple orders of magnitude. To combat log drift, we also develop an iterative rebalancing module, which periodically updates existing log groupings. We evaluate HELP extensively on 14 public large-scale datasets, showing that HELP achieves significantly higher F1-weighted grouping and parsing accuracy than current state-of-the-art online log parsers. We also implement HELP into Iudex's production observability platform, confirming HELP's practicality in a production environment. Our results show that HELP is effective and efficient for high-throughput real-world log parsing.

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

↑