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

小即是美:一种实用且高效的日志解析框架

Small is Beautiful: A Practical and Efficient Log Parsing Framework

Singapore Management University(新加坡管理大学)

Minxing Wang, Yintong Huo

AI总结:

本文提出EFParser,一种基于LLM的日志解析器,通过架构创新提升小型模型性能,实验证明其在小型模型上优于现有方法12.5%。

摘要:

日志解析是日志分析中的基本步骤,将原始日志划分为常量模板和动态变量。尽管最近基于语义的解析器利用大语言模型(LLM)表现出优于传统语法方法的泛化能力,但其效果严重依赖于模型规模。这种依赖性导致在使用更小、更节省资源的LLM时性能大幅下降。为此,我们提出EFParser,一种无监督的LLM日志解析器,通过系统化的架构创新增强小型模型的能力。EFParser引入双缓存系统,具有自适应更新机制,区分新模式和现有模板的变体。这使解析器能够合并冗余模板并修正先前错误,保持缓存一致性。此外,专门的修正模块作为守门人,验证并完善每个LLM生成的模板后再缓存,以防止错误注入。在公开大规模数据集上的实验证明,EFParser在小型LLM上所有指标上平均优于现有最佳方法12.5%,甚至超越一些使用大规模模型的基线。尽管有额外的验证步骤,EFParser仍保持高计算效率,提供了一种稳健且实用的现实日志分析部署解决方案。

英文摘要:

Log parsing is a fundamental step in log analysis, partitioning raw logs into constant templates and dynamic variables. While recent semantic-based parsers leveraging Large Language Models (LLMs) exhibit superior generalizability over traditional syntax-based methods, their effectiveness is heavily contingent on model scale. This dependency leads to significant performance collapse when employing smaller, more resource-efficient LLMs. Such degradation creates a major barrier to real-world adoption, where data privacy requirements and computational constraints necessitate the use of succinct models. To bridge this gap, we propose EFParser, an unsupervised LLM-based log parser designed to enhance the capabilities of smaller models through systematic architectural innovation. EFParser introduces a dual-cache system with an adaptive updating mechanism that distinguishes between novel patterns and variations of existing templates. This allows the parser to merge redundant templates and rectify prior errors, maintaining cache consistency. Furthermore, a dedicated correction module acts as a gatekeeper, validating and refining every LLM-generated template before caching to prevent error injection. Empirical evaluations on public large-scale datasets demonstrate that EFParser outperforms state-of-the-art baselines by an average of 12.5% across all metrics when running on smaller LLMs, even surpassing some baselines utilizing large-scale models. Despite its additional validation steps, EFParser maintains high computational efficiency, offering a robust and practical solution for real-world log analysis deployment.

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

↑