LogPrism:统一结构与变量编码以实现有效的日志压缩
LogPrism: Unifying Structure and Variable Encoding for Effective Log Compression
AI总结:
LogPrism通过统一结构与变量编码,实现日志压缩的高效与高压缩率,优于现有方法。
摘要:
在日志压缩领域,主流的'解析后再压缩'范式从根本上限制了效果,因为它将日志解析和压缩视为孤立的目标。虽然解析器优先考虑语义准确性(即事件识别),但它们往往掩盖了静态模板与动态变量之间至关重要的深层关联,这些关联对存储效率至关重要。本文通过全面的实证研究探讨了这种不一致,并提出LogPrism框架,通过统一的冗余编码来弥合这一差距。而不是依赖于刚性的预解析步骤,LogPrism通过构建统一冗余树(URT)动态整合结构提取与变量编码。这种分层方法有效挖掘了'结构+变量'共现模式,捕捉深层上下文冗余,同时通过预判模式编码加速处理。在16个基准数据集上的广泛实验表明,LogPrism建立了新的最先进的状态。它在14个数据集上实现了最高压缩率,比现有基线高出6.12%至83.34%的幅度,同时以29.87 MB/s的速度(1.68×~43.04×快于竞争对手)提供了优越的吞吐量。此外,当配置为单档案模式以最大化全局模式发现时,LogPrism将压缩率提升273.27%,比最佳基线高出19.39%,速度优势达2.62倍。
英文摘要:
In the field of log compression, the prevailing "parse-then-compress" paradigm fundamentally limits effectiveness by treating log parsing and compression as isolated objectives. While parsers prioritize semantic accuracy (i.e., event identification), they often obscure deep correlations between static templates and dynamic variables that are critical for storage efficiency. In this paper, we investigate this misalignment through a comprehensive empirical study and propose LogPrism, a framework that bridges the gap via unified redundancy encoding. Rather than relying on a rigid pre-parsing step, LogPrism dynamically integrates structural extraction with variable encoding by constructing a Unified Redundancy Tree (URT). This hierarchical approach effectively mines "structure+variable" co-occurrence patterns, capturing deep contextual redundancies while accelerating processing through pre-emptive pattern encoding. Extensive experiments on 16 benchmark datasets confirm that LogPrism establishes a new state-of-the-art. It achieves the highest compression ratio on 14 datasets, surpassing existing baselines by margins of 6.12% to 83.34%, while delivering superior throughput at 29.87 MB/s (1.68$\times$~43.04$\times$ faster than competitors). Moreover, when configured in single-archive mode to maximize global pattern discovery, LogPrism boosts its compression ratio by 273.27%, outperforming the best baseline by 19.39% with a 2.62$\times$ speed advantage.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。