Skip to main content
QUICK REVIEW

[论文解读] LogFold: Compressing Logs with Structured Tokens and Hybrid Encoding

Shiwen Shan, Yintong Huo|arXiv (Cornell University)|Mar 21, 2026
Software System Performance and ReliabilityComputer Science被引用 0
一句话总结

LogFold 引入骨架感知的结构化令牌分析和类型感知的混合编码管线来压缩日志,在 16 个公开数据集上超越最先进的基线。

ABSTRACT

Logs are essential for diagnosing failures and conducting retrospective studies, leading many software organizations to retain log messages for a long time. Nevertheless, the volume of generated log data grows rapidly as software systems grow, necessitating an effective compression method. Apart from general-purpose compressors (e.g., Gzip, Bzip2), many recent studies developed log-specific compression algorithms, but they offer suboptimal performance because of (1) overlooking redundancies within certain complex tokens, and (2) lacking a fine-grained encoding strategy for diverse token types. This work uncovers a new redundancy pattern in structured tokens and proposes a new type-aware encoding strategy to improve log compression. Building on this insight, we introduce LogFold, a novel log compression method consisting of four components: a token analyzer to classifies tokens as structured, unstructured, or static types; a processor that mines recurring patterns within structured tokens based on their delimiter skeletons; a hybrid encoder that tailors data representation according to token types; and a packer that compresses the output into an archive file. Extensive experiments on 16 public log datasets demonstrate that LogFold surpasses state-of-the-art baselines, achieving average compression ratio improvements by 11.11%, with a compression speed of 9.842 MB/s. Ablation studies further indicate the importance of each component. We also conduct sensitivity analyses to verify LogFold's robustness and stability across various internal settings.

研究动机与目标

  • 识别日志中结构化令牌的冗余以改善压缩。
  • 提出一个四组件管线(令牌分析器、结构化令牌处理器、混合编码器、打包器)用于高效日志压缩。
  • 开发一种类型感知编码策略,使编码针对数字、字符串和混合类型令牌进行定制。
  • 在多样化的公开日志数据集上评估 LogFold,并与最先进日志压缩器和通用压缩器进行比较。

提出的方法

  • 令牌分析器将每条日志条目中的令牌分类为结构化、非结构化或静态。
  • 结构化令牌处理器执行 Delimiter Skeleton-aware Grouping 和 Pattern Mining 以提取令牌内的冗余。
  • 混合编码器应用针对令牌类型的优化数字编码、字典编码和混合型编码。
  • 打包器汇聚中间输出并应用通用压缩器以生成最终归档。
  • 解压缩器反向执行管线以确保无损还原。
Figure 1. The general log compressor paradigm.
Figure 1. The general log compressor paradigm.

实验结果

研究问题

  • RQ1RQ1: LogFold 在多大程度上改善日志压缩?
  • RQ2RQ2: 不同组件如何为 LogFold 的效果做出贡献?
  • RQ3RQ3: LogFold 对内部参数设置有多大敏感性?
  • RQ4RQ4: LogFold 在不同压缩等级的不同 zip 工具上有多大泛化性?
  • RQ5RQ5: LogFold 在日志解压缩中的表现如何?

主要发现

  • LogFold 在 16 个公开数据集上对最先进基线的平均压缩比提升为 11.11%。
  • LogFold 的压缩速度为 9.842 MB/s。
  • LogFold 在评估数据集上超越九个基线压缩器,并在 16 个数据集中的 12 个实现最佳压缩。
  • 消融研究显示各组成部分(令牌分析器、结构化令牌处理器、混合编码器、打包器)的贡献。
  • 敏感性分析证实 LogFold 在内部设置上的鲁棒性和稳定性。
Figure 2. Examples of structured tokens.
Figure 2. Examples of structured tokens.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。